-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (61 loc) · 1.75 KB
/
Copy pathvalidate.yml
File metadata and controls
66 lines (61 loc) · 1.75 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Validate
on:
push:
branches: [main, develop]
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: validate-${{ github.ref }}
cancel-in-progress: true
jobs:
schema:
name: Schema and Python
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: '3.13'
cache: pip
- name: Install validator dependencies
run: python -m pip install --disable-pip-version-check --upgrade pip -r requirements.txt
- name: Run repository audit
run: python scripts/audit.py
- name: Validate examples and fixtures
run: python scripts/validate.py --all
- name: Run regression tests
run: python -m unittest discover -s test -p 'test_*.py'
- name: Compile Python sources
run: python -m compileall -q scripts test
frontend:
name: Frontend quality
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up Node.js
uses: actions/setup-node@v7
with:
node-version-file: .nvmrc
package-manager-cache: true
- name: Install dependencies
run: npm install --no-audit --no-fund
- name: Check formatting
run: npm run format:check
- name: Type-check and lint
run: npm run check
- name: Build registry and search index
run: npm run build
- name: Upload static build
uses: actions/upload-artifact@v7
with:
name: schema-registry-dist
path: dist
if-no-files-found: error
retention-days: 14