Skip to content

Commit 57a2a10

Browse files
committed
[circleci-issue] - codecov added separately
Signed-off-by: Ashish Patel <ashishpatel0720@gmail.com> Signed-off-by: ashish <ashishpatel0720@gmail.com>
1 parent 6cd04b9 commit 57a2a10

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

.github/workflows/nodejs.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ on: [push]
44

55
jobs:
66
build:
7-
87
runs-on: ubuntu-latest
9-
108
strategy:
119
matrix:
1210
node-version: [10.x, 11.x, 12.x, 13.x]
@@ -20,14 +18,23 @@ jobs:
2018
- run: npm install
2119
- run: npm run build --if-present
2220
- run: npm test
23-
- run: ./node_modules/.bin/nyc report --reporter=json
24-
- run: mv coverage/coverage-final.json coverage/coverage.json
25-
- name: Upload coverage to Codecov
26-
uses: codecov/codecov-action@v1
27-
with:
28-
token: ${{ secrets.CODECOV_TOKEN }}
29-
file: coverage/coverage.json
30-
name: codecov
31-
fail_ci_if_error: true
3221
env:
3322
CI: true
23+
24+
codecov:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v2
28+
- uses: actions/setup-node@v1
29+
with:
30+
node-version: 12
31+
- run: npm install
32+
- run: ./node_modules/.bin/nyc report --reporter=json
33+
- run: mv coverage/coverage-final.json coverage/coverage.json
34+
- name: Upload coverage to Codecov
35+
uses: codecov/codecov-action@v1
36+
with:
37+
token: ${{ secrets.CODECOV_TOKEN }}
38+
file: coverage/coverage.json
39+
name: codecov
40+
fail_ci_if_error: true

0 commit comments

Comments
 (0)