mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-12-01 03:18:11 +03:00
only fail on a coverage diff for PR builds, not commit builds (#16901)
This commit is contained in:
parent
ceba39c672
commit
5ec2deedba
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -196,7 +196,7 @@ jobs:
|
||||
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
|
||||
COV_STATUS="${PIPESTATUS[0]}"
|
||||
echo "COV_STATUS=$COV_STATUS" >> "$GITHUB_ENV"
|
||||
if [[ $COV_STATUS != '0' ]]; then
|
||||
if [[ $COV_STATUS != '0' && '$GITHUB_BASE_REF' != '' ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user