Skip to content

Commit aea0221

Browse files
committed
chore: upgrade CI node version
1 parent a11f920 commit aea0221

File tree

1 file changed

+16
-19
lines changed

1 file changed

+16
-19
lines changed

.github/workflows/check.yml

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,25 @@
11
name: Lint & Unit Test
22
on:
33
push:
4-
branches: [ master, dev ]
4+
branches: [master, dev]
55
pull_request:
66
branches: [dev]
77
jobs:
88
check:
99
runs-on: ubuntu-latest
10-
strategy:
11-
matrix:
12-
node: [ 12, 14, 16, 18 ]
1310
steps:
14-
- name: Checkout
15-
uses: actions/checkout@v3
16-
- name: Setup node
17-
uses: actions/setup-node@v3
18-
with:
19-
node-version: ${{ matrix.node }}
20-
cache: 'npm'
21-
- name: Install dependencies
22-
run: npm install -g codecov && npm install
23-
- name: Run Lint
24-
run: npm run lint
25-
- name: Run tests
26-
run: npm test
27-
- name: Upload coverage
28-
run: codecov || echo "Codecov upload failed, continuing..."
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
- name: Setup Node.js
14+
uses: actions/setup-node@v3
15+
with:
16+
node-version: 'lts/*'
17+
cache: 'npm'
18+
- name: Install dependencies
19+
run: npm install -g codecov && npm install
20+
- name: Run Lint
21+
run: npm run lint
22+
- name: Run tests
23+
run: npm test
24+
- name: Upload coverage
25+
run: codecov || echo "Codecov upload failed, continuing..."

0 commit comments

Comments
 (0)