-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 1.09 KB
/
Copy pathvalidate.yml
File metadata and controls
40 lines (40 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Marketplace checks
on:
pull_request:
branches: [main]
push:
branches: [main]
permissions:
contents: read
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- uses: pnpm/action-setup@v4
with:
version: 9.9.0
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: python3 -m unittest discover -s tests
- run: pnpm test:static-api
- run: pnpm build
- name: Validate admission catalogs
env:
BASE_SHA: ${{ github.event.pull_request.base.sha || github.event.before }}
run: |
if [ -n "$BASE_SHA" ] && [ "$BASE_SHA" != '0000000000000000000000000000000000000000' ]; then
python3 scripts/validate.py --base "$BASE_SHA"
else
python3 scripts/validate.py
fi
- run: git diff --check