From cee05f7987373d7a9336507e94031e1e8cf71e21 Mon Sep 17 00:00:00 2001 From: moilanik Date: Sun, 14 Jun 2026 07:57:09 +0300 Subject: [PATCH] bats kontin kutsu muutos --- .gitea/workflows/quality-gate.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/quality-gate.yml b/.gitea/workflows/quality-gate.yml index 64116a7..58001cb 100644 --- a/.gitea/workflows/quality-gate.yml +++ b/.gitea/workflows/quality-gate.yml @@ -51,14 +51,15 @@ jobs: run: | set +e mkdir -p "reports/${GITHUB_SHA:0:8}/bats" - docker run --rm \ - -v "$(pwd):/repo" \ - -v "$(pwd)/reports/${GITHUB_SHA:0:8}/bats:/reports" \ - -w /repo \ + tar cf - . | docker run --rm -i \ --entrypoint bash ${{ inputs.bats-image }} \ - -c 'apk add -q lsof python3 jq curl ruby && \ - bats tests/' \ - 2>&1 | tee "reports/${GITHUB_SHA:0:8}/bats/results.txt" + -c ' + mkdir -p /repo + tar xf - -C /repo + cd /repo + apk add -q lsof python3 jq curl ruby + bats tests/ + ' 2>&1 | tee "reports/${GITHUB_SHA:0:8}/bats/results.txt" BATS_EXIT=$? bash .ci/.gitea/scripts/bats-report.sh "reports/${GITHUB_SHA:0:8}/bats" || true