Skip to content

Commit b14497b

Browse files
committed
Debug codecov action.
1 parent 82e7ea6 commit b14497b

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,33 @@ jobs:
2626
- name: test
2727
id: test
2828
if: ${{ always() }}
29-
run: npm run test -- --coverage
30-
- name: Codecov
31-
if: steps.test.outcome == 'success'
32-
uses: codecov/codecov-action@v2
29+
run: npm run test
3330
- name: lint
3431
if: ${{ always() }}
3532
run: npm run lint
3633
- name: style
3734
if: ${{ always() }}
3835
run: npm run format:check
36+
37+
codecov: # Send only a single coverage report per run
38+
needs: build
39+
timeout-minutes: 15
40+
env:
41+
CI: true
42+
runs-on: ubuntu-latest
43+
steps:
44+
- uses: actions/checkout@v2
45+
- name: Use Node.js lts
46+
uses: actions/setup-node@v2
47+
with:
48+
node-version: lts/*
49+
cache: npm
50+
- name: Use NPM 8
51+
run: npm i -g npm@8
52+
- run: npm ci
53+
- name: test
54+
run: npm run test -- --coverage
55+
- name: Codecov
56+
uses: codecov/codecov-action@v2
57+
with:
58+
verbose: true

0 commit comments

Comments
 (0)