äökihöougbhöougb
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user