Skip to content

Commit

Permalink
[Fix] Fix to calculate coverage rate in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jagaapple committed Aug 8, 2020
1 parent d0530be commit 35a814f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,15 @@ jobs:
with:
path: "./node_modules"
key: "node-modules-${{ needs.parameters.outputs.GITHUB_SHA }}-${{ matrix.node }}"
- name: "Execute tests"
run: "npm test"
- name: "Build test"
run: "npm run build"
- name: "Execute tests"
run: "npm test"
- name: "Calculate coverage rate"
if: "matrix.node == '12.13'"
env:
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"
run: "npm run coverage"

lint:
name: "Lint"
Expand Down

0 comments on commit 35a814f

Please sign in to comment.