Skip to content

Commit 5da63c7

Browse files
committed
update actions workflow
1 parent 197c966 commit 5da63c7

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

.github/workflows/main.yml

+20-19
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,28 @@ jobs:
88

99
strategy:
1010
matrix:
11-
node-version: [16.x]
11+
node-version: [16.x, 17.x]
1212

1313
steps:
14-
- uses: actions/checkout@v1
14+
- uses: actions/checkout@v2
1515

16-
- name: Use Node.js ${{ matrix.node-version }}
17-
uses: actions/setup-node@v1
18-
with:
19-
node-version: ${{ matrix.node-version }}
16+
- name: Use Node.js ${{ matrix.node-version }}
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
cache: "npm"
2021

21-
- name: npm install, build, test and generate coverage
22-
run: |
23-
npm install
24-
npm run build
25-
npm run coverage
26-
env:
27-
CI: true
22+
- name: npm install, build, test and generate coverage
23+
run: |
24+
npm install
25+
npm run build
26+
npm run coverage
27+
env:
28+
CI: true
2829

29-
- name: Upload coverage
30-
if: success()
31-
run: bash <(curl -s https://codecov.io/bash) -t $TOKEN -B $REF
32-
env:
33-
TOKEN: "${{ secrets.CODECOV_TOKEN }}"
34-
REF: "${{ github.ref }}"
30+
- name: Upload coverage
31+
if: success()
32+
run: bash <(curl -s https://codecov.io/bash) -t $TOKEN -B $REF
33+
env:
34+
TOKEN: "${{ secrets.CODECOV_TOKEN }}"
35+
REF: "${{ github.ref }}"

0 commit comments

Comments
 (0)