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:
parent
d6f53392d8
commit
ab1a470ab2
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user