mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-12-11 11:24:28 +03:00
parent
e130fe7091
commit
a92cbe82e9
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@ -157,10 +157,12 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
compare-branch: ${{ github.base_ref == '' && github.event.before || format('origin/{0}', github.base_ref) }}
|
compare-branch: ${{ github.base_ref == '' && github.event.before || format('origin/{0}', github.base_ref) }}
|
||||||
run: |
|
run: |
|
||||||
set -o pipefail
|
|
||||||
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
|
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]}"
|
COV_STATUS="${PIPESTATUS[0]}"
|
||||||
echo "COV_STATUS=$COV_STATUS" >> "$GITHUB_ENV"
|
echo "COV_STATUS=$COV_STATUS" >> "$GITHUB_ENV"
|
||||||
|
if [[ $COV_STATUS != '0' ]]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Remove previous coverage report comment and label from PR
|
- name: Remove previous coverage report comment and label from PR
|
||||||
if: always()
|
if: always()
|
||||||
|
Loading…
Reference in New Issue
Block a user