Skip to content

Commit

Permalink
added: coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaGuarini committed Jul 11, 2021
1 parent e839dde commit 109b20b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [ main, dev ]
pull_request:
branches: [ dev ]
branches: [ main, dev ]

jobs:
build:
Expand All @@ -23,3 +23,12 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: npm i
- run: npm test
- name: Generate Coverage
if: ${{ success() && github.event_name != 'pull_request' && matrix.node-version == '15.x' }}
run: npm run cov
- name: Coveralls
if: ${{ success() && github.event_name != 'pull_request' && matrix.node-version == '15.x' }}
uses: coverallsapp/github-action@master
with:
path-to-lcov: ./coverage/lcov.info
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 109b20b

Please sign in to comment.