poc
ci-bats Bats tests FAILED
ci-cucumber Cucumber tests passed
CI / feature (push) Failing after 1m14s
CI / main (push) Has been skipped
POC Docker volume mount / test-volume (push) Successful in 17s

This commit is contained in:
moilanik
2026-06-13 07:19:59 +03:00
parent 525f091d91
commit 93c5460fd4
2 changed files with 34 additions and 2 deletions
+4 -2
View File
@@ -31,12 +31,14 @@ jobs:
id: bats-tests
shell: bash
run: |
CID=$(docker run -d --entrypoint tail ${{ inputs.bats-image }} -f /dev/null)
docker cp . $CID:/workspace
mkdir -p "reports/${GITHUB_SHA:0:8}/bats"
set +e
docker run --rm -v "$PWD:/code" --entrypoint bash ${{ inputs.bats-image }} \
-c 'bats /code/tests/' \
docker exec $CID bash -c 'cd /workspace && bats tests/' \
> "reports/${GITHUB_SHA:0:8}/bats/results.txt" 2>&1
BATS_EXIT=$?
docker rm -f $CID > /dev/null 2>&1
{
echo "<html><body><h1>Bats tests</h1><ul>"
for f in reports/${GITHUB_SHA:0:8}/bats/*; do