Skip to content

Commit 095c669

Browse files
authored
ci: run test on latest npm LTS versions
1 parent 202633a commit 095c669

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,23 @@ on:
77
pull_request:
88

99
jobs:
10-
unit:
11-
runs-on: ubuntu-latest
10+
lint-test:
1211
name: 🚀 Lint and test
12+
runs-on: ubuntu-latest
1313
timeout-minutes: 5
14+
strategy:
15+
matrix:
16+
node: [ 18, 20 ]
17+
1418
steps:
1519
- name: 👍 Checkout
16-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
1721

18-
- name: 📦 Cache node modules
19-
uses: actions/cache@v2
20-
env:
21-
cache-name: cache-node-modules
22+
- name: 🐢 Setup node.js
23+
uses: actions/setup-node@v4
2224
with:
23-
path: ~/.npm
24-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
25-
restore-keys: |
26-
${{ runner.os }}-build-${{ env.cache-name }}-
27-
${{ runner.os }}-build-
28-
${{ runner.os }}-
25+
node-version: ${{ matrix.node }}
26+
cache: 'npm'
2927

3028
- name: 📥 Install dependencies
3129
run: npm install
@@ -35,3 +33,4 @@ jobs:
3533

3634
- name: ✅ Run tests
3735
run: npm run test
36+

0 commit comments

Comments
 (0)