Skip to content

Commit

Permalink
ci: Add Coveralls action
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed Jan 1, 2020
1 parent ca6e120 commit 11dfa38
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/test.yml
Expand Up @@ -87,15 +87,20 @@ jobs:

- run: npm test

- name: Post Coveralls
if: startsWith(matrix.os, 'ubuntu')
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
COVERALLS_SERVICE_NAME: ${{ secrets.COVERALLS_SERVICE_NAME }}
run: cat ./coverage/lcov.info | ./node_modules/.bin/coveralls

- name: Upload test coverage
uses: actions/upload-artifact@v1
with:
name: coverage
path: coverage

- name: Post Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel: true

- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true

0 comments on commit 11dfa38

Please sign in to comment.