Skip to content

Commit ab1a470

Browse files
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.
1 parent d6f5339 commit ab1a470

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,14 @@ jobs:
182182
run: mdbook test
183183

184184
- name: Setup Node
185+
if: matrix.language == 'en'
185186
uses: actions/setup-node@v4
186187
with:
187-
node-version: 18
188+
node-version: 22
189+
cache: "npm"
190+
cache-dependency-path: "tests/package-lock.json"
188191
- name: Install test framework
192+
if: matrix.language == 'en'
189193
run: npm install
190194
working-directory: ./tests
191195
- name: Test Javascript

0 commit comments

Comments
 (0)