fail for under 100% diff coverage (#15080)

This commit is contained in:
Kyle Altendorf 2023-04-24 14:52:21 -04:00 committed by GitHub
parent 6843bba7c0
commit b493498204
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,7 +147,7 @@ jobs:
env:
compare-branch: ${{ github.base_ref == '' && github.event.before || format('origin/{0}', github.base_ref) }}
run: |
diff-cover --compare-branch=${{ env.compare-branch }} --html-report coverage-reports/diff-cover.html --markdown-report coverage-reports/diff-cover.md coverage-reports/coverage.xml | tee coverage-reports/diff-cover-stdout
diff-cover --compare-branch=${{ env.compare-branch }} --fail-under=100 --html-report coverage-reports/diff-cover.html --markdown-report coverage-reports/diff-cover.md coverage-reports/coverage.xml | tee coverage-reports/diff-cover-stdout
cat coverage-reports/diff-cover.md >> $GITHUB_STEP_SUMMARY
- name: Publish coverage reports