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