Skip to content

Commit

Permalink
Try other coverage action style
Browse files Browse the repository at this point in the history
  • Loading branch information
rejas committed Sep 26, 2021
1 parent 29965fc commit c92384f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/node-ci.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,27 @@ jobs:
run: |
npm ci
npm test
npm run coverage
on-success:
# Run the coveralls action which uploads the
# lcov.info file
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
flag-name: run-${{ matrix.node }}
# This is a parallel build so need this
parallel: true

# As testing against multiple versions need this to
# finish the parallel build
finish:
name: Coveralls coverage
needs: test
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- run: |
npm run coverage
- name: Coveralls
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ secrets.github_token }}
parallel-finished: true
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"main": "dist/index.js",
"scripts": {
"coverage": "nyc report --reporter=text-lcov",
"coverage": "nyc --reporter=lcov --reporter=text-summary ava",
"pretest": "xo src tests",
"prepublishOnly": "del-cli dist && cross-env BABEL_ENV=publish babel src --out-dir dist",
"test": "nyc ava"
Expand Down

0 comments on commit c92384f

Please sign in to comment.