äökihöougbhöougb
CI / load-config (push) Successful in 12s
ci-cucumber Cucumber tests
CI / feature (push) Failing after 1m16s
CI / main (push) Has been skipped

This commit is contained in:
moilanik
2026-06-14 06:47:34 +03:00
parent 7601f1581e
commit b2661b58dd
+6 -9
View File
@@ -38,6 +38,8 @@ jobs:
bats: bats:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: ${{ inputs.bats-image }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -49,16 +51,11 @@ jobs:
id: bats-tests id: bats-tests
shell: bash shell: bash
run: | run: |
set +e apk add -q python3 curl jq lsof ruby
mkdir -p "reports/${GITHUB_SHA:0:8}/bats" mkdir -p "reports/${GITHUB_SHA:0:8}/bats"
docker run --rm \ set +e
-v "$(pwd):/repo:ro" \ bats tests/ > "reports/${GITHUB_SHA:0:8}/bats/results.txt" 2>&1
-v "$(pwd)/reports/${GITHUB_SHA:0:8}/bats:/reports" \ BATS_EXIT=$?
-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]}
bash .ci/.gitea/scripts/bats-report.sh "reports/${GITHUB_SHA:0:8}/bats" || true bash .ci/.gitea/scripts/bats-report.sh "reports/${GITHUB_SHA:0:8}/bats" || true
echo "BATS_EXIT=${BATS_EXIT}" >> "${GITHUB_ENV}" echo "BATS_EXIT=${BATS_EXIT}" >> "${GITHUB_ENV}"
exit ${BATS_EXIT} exit ${BATS_EXIT}