diff --git a/.gitea/workflows/quality-gate.yml b/.gitea/workflows/quality-gate.yml index f8bd218..4017334 100644 --- a/.gitea/workflows/quality-gate.yml +++ b/.gitea/workflows/quality-gate.yml @@ -61,25 +61,17 @@ jobs: > "reports/${GITHUB_SHA:0:8}/bats/results.txt" 2>&1 BATS_EXIT=$? bash .ci/.gitea/scripts/bats-report.sh "reports/${GITHUB_SHA:0:8}/bats" || true - echo "BATS_EXIT=${BATS_EXIT}" >> "${GITHUB_ENV}" + + STATE="success" + [ "${BATS_EXIT}" != "0" ] && STATE="failure" + bash .ci/scripts/report-status.sh "${STATE}" "Bats tests" ci-bats + exit ${BATS_EXIT} - name: Publish bats reports if: always() run: bash .ci/scripts/publish-git-pages.sh bats - - name: Set bats commit status - if: always() - shell: bash - run: | - STATE="success" - [ "${BATS_EXIT}" != "0" ] && STATE="failure" - if [ -f "reports/${GITHUB_SHA:0:8}/bats/test-report.html" ]; then - bash .ci/scripts/report-status.sh "${STATE}" "Bats tests" ci-bats bats - else - bash .ci/scripts/report-status.sh "${STATE}" "Bats tests" ci-bats - fi - cucumber: runs-on: ubuntu-latest container: