From 3e7e2e7473974a52aefc85d313444c40c0cb4dec Mon Sep 17 00:00:00 2001 From: moilanik Date: Sun, 14 Jun 2026 07:24:40 +0300 Subject: [PATCH] =?UTF-8?q?als=C3=B6dgkh=C3=B6laihgd?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/quality-gate.yml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) 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: