File tree Expand file tree Collapse file tree 1 file changed +24
-8
lines changed
Expand file tree Collapse file tree 1 file changed +24
-8
lines changed Original file line number Diff line number Diff line change @@ -17,20 +17,36 @@ jobs:
1717 steps :
1818 - uses : actions/checkout@v4
1919
20- # --- JavaScript side ---
21- - uses : actions/setup-node@v4
20+ # ───────────── JavaScript side ─────────────
21+ - name : Set up Node
22+ uses : actions/setup-node@v4
2223 with :
2324 node-version : ${{ matrix.node }}
24- cache : ' npm'
25- - run : npm ci
26- - run : npm test -- --ci || echo "No JS tests"
25+ # ⚠️ no cache line → setup-node won’t look for package-lock.json
26+ # cache: 'npm'
2727
28- # --- Python side ---
29- - uses : actions/setup-python@v5
28+ - name : Install JS deps
29+ run : |
30+ if [ -f package-lock.json ]; then
31+ echo "package-lock.json found → npm ci"
32+ npm ci
33+ else
34+ echo "No lock-file → npm install"
35+ npm install
36+ fi
37+
38+ - name : Run JS unit tests (if any)
39+ run : npm test -- --ci || echo "No JS tests"
40+
41+ # ───────────── Python side ─────────────
42+ - name : Set up Python
43+ uses : actions/setup-python@v5
3044 with :
3145 python-version : ${{ matrix.python }}
3246 cache : ' pip'
33- - run : |
47+
48+ - name : Install Python deps & run tests
49+ run : |
3450 pip install -r backend/requirements.txt
3551 pip install pytest
3652 pytest backend || echo "No Py tests"
You can’t perform that action at this time.
0 commit comments