From a92cbe82e921995628cbc06b5969aa7f735ce166 Mon Sep 17 00:00:00 2001 From: William Allen Date: Wed, 9 Aug 2023 16:44:29 -0500 Subject: [PATCH] Remove pipefail (#15986) * Remove pipefail * add fail condition --- .github/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f193f5a309139..bc99095789a1d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -157,10 +157,12 @@ jobs: env: compare-branch: ${{ github.base_ref == '' && github.event.before || format('origin/{0}', github.base_ref) }} 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 COV_STATUS="${PIPESTATUS[0]}" 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 if: always()