diff --git a/.gitea/workflows/build-feature.yml b/.gitea/workflows/build-feature.yml index bf707c5..23274b8 100644 --- a/.gitea/workflows/build-feature.yml +++ b/.gitea/workflows/build-feature.yml @@ -28,25 +28,43 @@ jobs: path: .ci - name: Run bats tests - continue-on-error: true + id: bats-tests shell: bash run: | mkdir -p "reports/${GITHUB_SHA:0:8}/bats" - docker run --rm -v "$PWD:/code" ${{ inputs.bats-image }} /code/tests/*.bats > "reports/${GITHUB_SHA:0:8}/bats/results.txt" 2>&1 || true - if ls tests/*.bats 1> /dev/null 2>&1; then - docker run --rm -v "$PWD:/code" ${{ inputs.bats-image }} --formatter junit /code/tests/*.bats > "reports/${GITHUB_SHA:0:8}/bats/junit.xml" 2>&1 || true - fi + set +e + docker run --rm -v "$PWD:/code" ${{ inputs.bats-image }} /code/tests/*.bats \ + > "reports/${GITHUB_SHA:0:8}/bats/results.txt" 2>&1 + BATS_EXIT=$? + { + echo "