From b2661b58ddbfe301c0f4b400ddc7f6eac716f5d3 Mon Sep 17 00:00:00 2001 From: moilanik Date: Sun, 14 Jun 2026 06:47:34 +0300 Subject: [PATCH] =?UTF-8?q?=C3=A4=C3=B6kih=C3=B6ougbh=C3=B6ougb?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/quality-gate.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/quality-gate.yml b/.gitea/workflows/quality-gate.yml index b06e23d..4d437cb 100644 --- a/.gitea/workflows/quality-gate.yml +++ b/.gitea/workflows/quality-gate.yml @@ -38,6 +38,8 @@ jobs: bats: runs-on: ubuntu-latest + container: + image: ${{ inputs.bats-image }} steps: - uses: actions/checkout@v4 - uses: actions/checkout@v4 @@ -49,16 +51,11 @@ jobs: id: bats-tests shell: bash run: | - set +e + apk add -q python3 curl jq lsof ruby mkdir -p "reports/${GITHUB_SHA:0:8}/bats" - docker run --rm \ - -v "$(pwd):/repo:ro" \ - -v "$(pwd)/reports/${GITHUB_SHA:0:8}/bats:/reports" \ - -w /repo \ - --entrypoint bash ${{ inputs.bats-image }} \ - -c 'apk add -q lsof python3 jq curl ruby && \ - bats tests/' | tee "$(pwd)/reports/${GITHUB_SHA:0:8}/bats/results.txt" - BATS_EXIT=${PIPESTATUS[0]} + set +e + bats tests/ > "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}" exit ${BATS_EXIT}