1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-06-05 09:07:29 +02:00

workflow: enable npm caching and update node to LTS version 22 (#2726)

node version 18 is EOL  https://nodejs.org/en/about/previous-releases
node version 22 is the new LTS release 
The caching is done to make the tests less brittle in addition to only
setup for the english translation
There have been failed tests because npm install encountered network
issues while downloading packages.
This commit is contained in:
michael-kerscher 2025-05-01 20:17:44 +02:00 committed by GitHub
parent d6f53392d8
commit ab1a470ab2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -182,10 +182,14 @@ jobs:
run: mdbook test
- name: Setup Node
if: matrix.language == 'en'
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 22
cache: "npm"
cache-dependency-path: "tests/package-lock.json"
- name: Install test framework
if: matrix.language == 'en'
run: npm install
working-directory: ./tests
- name: Test Javascript