File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+
8+ permissions :
9+ contents : read
10+
11+ concurrency :
12+ group : ci-${{ github.workflow }}-${{ github.ref }}
13+ cancel-in-progress : true
14+
15+ jobs :
16+ node :
17+ name : Frontend (Next.js)
18+ runs-on : ubuntu-latest
19+ strategy :
20+ fail-fast : false
21+ matrix :
22+ node-version : ['22.x', '24.x']
23+ steps :
24+ - uses : actions/checkout@v7
25+ - uses : actions/setup-node@v7
26+ with :
27+ node-version : ${{ matrix.node-version }}
28+ cache : npm
29+ - name : Install dependencies
30+ run : npm ci
31+ - name : Lint
32+ run : npm run lint
33+ - name : Build
34+ run : npm run build
35+
36+ python :
37+ name : Backend (FastAPI)
38+ runs-on : ubuntu-latest
39+ steps :
40+ - uses : actions/checkout@v7
41+ - uses : actions/setup-python@v7
42+ with :
43+ python-version : ' 3.11'
44+ cache : pip
45+ - name : Install dependencies
46+ run : |
47+ python -m pip install --upgrade pip
48+ pip install -r requirements.txt
49+ - name : Byte-compile sources
50+ run : python -m compileall api scripts
51+
52+ audit :
53+ name : Dependency audit (advisory)
54+ runs-on : ubuntu-latest
55+ continue-on-error : true
56+ steps :
57+ - uses : actions/checkout@v7
58+ - uses : actions/setup-node@v7
59+ with :
60+ node-version : ' 22.x'
61+ cache : npm
62+ - name : npm audit
63+ run : npm audit --audit-level=high
You can’t perform that action at this time.
0 commit comments