Skip to content

Commit cb5c66a

Browse files
committed
ci: add strategy for node version
1 parent 4c1b1f5 commit cb5c66a

File tree

1 file changed

+24
-22
lines changed

1 file changed

+24
-22
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,31 @@ name: ci
33
permissions: {}
44

55
on:
6-
push:
7-
branches:
8-
- develop
9-
pull_request:
10-
branches:
11-
- develop
12-
workflow_dispatch: {}
13-
merge_group: {}
6+
push:
7+
branches:
8+
- develop
9+
pull_request:
10+
branches:
11+
- develop
12+
workflow_dispatch: {}
13+
merge_group: {}
1414

1515
jobs:
16-
ci:
17-
runs-on: ubuntu-latest
16+
ci:
17+
runs-on: ubuntu-latest
18+
strategy:
19+
matrix:
20+
node: [18, 20, 22]
21+
steps:
22+
- uses: actions/checkout@v4
23+
- run: corepack enable
24+
- uses: actions/setup-node@v4
25+
with:
26+
node-version: ${{ matrix.node }}
27+
cache: npm
1828

19-
steps:
20-
- uses: actions/checkout@v4
21-
- run: corepack enable
22-
- uses: actions/setup-node@v4
23-
with:
24-
node_version: 20
25-
cache: npm
29+
- name: 📦 Install dependencies
30+
run: npm install
2631

27-
- name: 📦 Install dependencies
28-
run: npm install
29-
30-
- name: 📝 Lint
31-
run: npm run lint
32+
- name: 📝 Lint
33+
run: npm run lint

0 commit comments

Comments
 (0)