ci: install the frontend npm deps before the suite
The v3.31.1 run's frontend suite failed on sp.test.js: require('des.js')
(aes-js likewise) needs the npm dependencies, which exist in a working
tree but not on a fresh runner. The workflow now runs npm ci in
frontend/ (the lockfile is checked in) before node --test.
This commit is contained in:
@@ -57,6 +57,12 @@ jobs:
|
||||
working-directory: simple
|
||||
run: python -m unittest discover -s tests
|
||||
|
||||
# sp.test.js / the AES tests require the npm runtime dependencies
|
||||
# (des.js, aes-js); the build deps come along with them.
|
||||
- name: Install the frontend test dependencies
|
||||
working-directory: simple/frontend
|
||||
run: npm ci --no-audit --no-fund
|
||||
|
||||
- name: Frontend suite
|
||||
working-directory: simple/frontend
|
||||
run: node --test
|
||||
|
||||
Reference in New Issue
Block a user