Skip to content

Commit 109b20b

Browse files
added: coverage report
1 parent e839dde commit 109b20b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches: [ main, dev ]
66
pull_request:
7-
branches: [ dev ]
7+
branches: [ main, dev ]
88

99
jobs:
1010
build:
@@ -23,3 +23,12 @@ jobs:
2323
node-version: ${{ matrix.node-version }}
2424
- run: npm i
2525
- run: npm test
26+
- name: Generate Coverage
27+
if: ${{ success() && github.event_name != 'pull_request' && matrix.node-version == '15.x' }}
28+
run: npm run cov
29+
- name: Coveralls
30+
if: ${{ success() && github.event_name != 'pull_request' && matrix.node-version == '15.x' }}
31+
uses: coverallsapp/github-action@master
32+
with:
33+
path-to-lcov: ./coverage/lcov.info
34+
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)