Skip to content

Commit 7730fa9

Browse files
chore: Update Node.js versions in CI workflow
I've updated the GitHub Actions CI workflow to use more recent Node.js versions. - I modified the `node-version` matrix to `[20.x, 22.x]`. - I updated `actions/checkout` from `v2` to `v4`. - I updated `actions/setup-node` from `v1` to `v4`. - I enabled npm caching in the `setup-node` step. - I ensured `npm test` is always executed.
1 parent f0c5450 commit 7730fa9

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/node.js.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
node-version: [12.x, 14.x, 16.x, 17.x, 18.x, 19.x]
19+
node-version: [20.x, 22.x]
2020

2121
steps:
22-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v4
2323
- name: Use Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v1
24+
uses: actions/setup-node@v4
2525
with:
2626
node-version: ${{ matrix.node-version }}
27+
cache: 'npm' # Added npm caching
2728
- run: npm ci
2829
- run: npm run build --if-present
29-
- run: npm test --if-present
30+
- run: npm test # Removed --if-present, tests should always run

0 commit comments

Comments
 (0)