Skip to content

Commit

Permalink
Decrease required test coverage in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytro-savochkin committed Nov 15, 2024
1 parent 13f93c2 commit 6f78c70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ jobs:
run: |
echo "Total line test coverage: ${{ steps.coverage.outputs.COVERAGE_LINE }}%"
echo "Total branch test coverage: ${{ steps.coverage.outputs.COVERAGE_BRANCH }}%"
- name: Fail if coverage is less than 100%
if: steps.coverage.outputs.COVERAGE_LINE != 100 || steps.coverage.outputs.COVERAGE_BRANCH != 100
- name: Fail if coverage is low
if: steps.coverage.outputs.COVERAGE_LINE != 100 || steps.coverage.outputs.COVERAGE_BRANCH < 95
uses: actions/github-script@v7
with:
script: "core.setFailed('Please make sure test coverage is 100%. \
script: "core.setFailed('Please make sure line test coverage is 100% and branch test coverage is > 95%. \
Currently: ${{ steps.coverage.outputs.COVERAGE_LINE }}% (line), \
${{ steps.coverage.outputs.COVERAGE_BRANCH }}% (branch).')"

0 comments on commit 6f78c70

Please sign in to comment.