Skip to content

Commit f5cac36

Browse files
chore: add tests for Node 20
1 parent 0b7d26f commit f5cac36

File tree

1 file changed

+25
-11
lines changed

1 file changed

+25
-11
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,37 @@
11
name: CI
2+
23
on:
34
push:
45
branches: [main]
56
pull_request:
6-
branches: [main]
7+
schedule:
8+
- cron: 0 0 * * 0
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
713

814
jobs:
915
test:
10-
name: Test
16+
name: 🧪 Test (Node@${{ matrix.node }})
1117
strategy:
1218
matrix:
13-
node: [16.x, 15.x, 14.x, 13.x, 12.x, 10.x, "10.12.0"]
19+
node: [10.12.0, 10, 12.0.0, 12, 14, 16, 18, 20]
1420
runs-on: ubuntu-latest
1521
steps:
16-
- uses: actions/checkout@v3
17-
- uses: actions/setup-node@v3
18-
with:
19-
node-version: ${{ matrix.node }}
20-
- name: Install Packages
21-
run: npm install
22-
- name: Test
23-
run: npm test
22+
- name: ⬇️ Checkout repo
23+
uses: actions/checkout@v3
24+
25+
- name: ⎔ Setup Node v${{ matrix.node }}
26+
uses: actions/setup-node@v3
27+
with:
28+
node-version: ${{ matrix.node }}
29+
30+
- name: 📥 Install dependencies
31+
run: npm install
32+
33+
- name: ▶️ Run test script
34+
run: npm run test
35+
36+
- name: ⬆️ Upload coverage report
37+
uses: codecov/codecov-action@v3

0 commit comments

Comments
 (0)