Skip to content

Commit

Permalink
Run coverage when tests succeed
Browse files Browse the repository at this point in the history
  • Loading branch information
BassemNKhalil committed Nov 14, 2023
1 parent 0fc6ea0 commit 64da494
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/jest_coverage_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Jest coverage report
on:
push:
branches: [main]
pull_request:
workflow_call:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ jobs:
cache: "npm"
- run: npm ci
- run: npm test
coverage-report:
uses: ./.github/workflows/jest_coverage_report.yml
needs: run-tests

0 comments on commit 64da494

Please sign in to comment.