Skip to content

Commit

Permalink
add coverge to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmaLRussell committed Dec 18, 2024
1 parent 264b412 commit 75c08f1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/test-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,14 @@ jobs:
run: ./docker/push
- name: Run app in docker
run: ./docker/run
- name: Run unit and integration tests
run: npm run test
- name: Run unit and integration tests with coverage
run: npm run coverage
- name: Upload coverage
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true # optional (default = false)
files: ./coverage/coverage-final.json
token: ${{ secrets.CODECOV_TOKEN }} # required
- name: Push branch docker tag
run: ./docker/push_branch_tag

0 comments on commit 75c08f1

Please sign in to comment.