Skip to content

Commit

Permalink
feat(ci): Add coveralls to the test actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ajfisher committed Oct 5, 2020
1 parent c4eb89e commit 3772ec6
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,25 @@ jobs:
- name: Tests completed
run: echo Done!





test-coverage:
runs-on: ubuntu-latest
needs: test-success
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- uses: actions/cache@v1
with:
path: ./node_modules
key: test-12-${{hashFiles('./package-lock.json')}}
restore-keys: test-12-${{hashFiles(./package-lock.json')}}
- name: Install modules
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm install
- name: Test with coverage
run: npm run test-cover
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3772ec6

Please sign in to comment.