Skip to content

Commit 5b3bc8a

Browse files
ci: add Node.js 18
Reference: https://github.com/nodejs/Release
1 parent adbcb8d commit 5b3bc8a

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,18 @@ on:
66
schedule:
77
- cron: '0 0 * * 0'
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
test-node:
1114
runs-on: ubuntu-latest
1215

1316
strategy:
1417
matrix:
15-
node-version: [12.x, 14.x]
18+
node-version:
19+
- 12
20+
- 18
1621

1722
services:
1823
redis:
@@ -26,12 +31,16 @@ jobs:
2631
- 6379:6379
2732

2833
steps:
29-
- uses: actions/checkout@v2
34+
- name: Checkout repository
35+
uses: actions/checkout@v3
36+
3037
- name: Use Node.js ${{ matrix.node-version }}
31-
uses: actions/setup-node@v1
38+
uses: actions/setup-node@v3
3239
with:
3340
node-version: ${{ matrix.node-version }}
34-
- run: npm ci
35-
- run: npm test
36-
env:
37-
CI: true
41+
42+
- name: Install dependencies
43+
run: npm ci
44+
45+
- name: Run tests
46+
run: npm test

0 commit comments

Comments
 (0)