diff --git a/.gitea/workflows/build-feature.yml b/.gitea/workflows/build-feature.yml index e093e41..26bcf5d 100644 --- a/.gitea/workflows/build-feature.yml +++ b/.gitea/workflows/build-feature.yml @@ -72,11 +72,11 @@ jobs: shell: bash run: | mkdir -p "reports/${GITHUB_SHA:0:8}/cucumber" + set +e npx cucumber-js \ --format json:"reports/${GITHUB_SHA:0:8}/cucumber/report.json" \ - --format html:"reports/${GITHUB_SHA:0:8}/cucumber/index.html" 2>&1 || \ - npx cucumber-js \ - --format json:"reports/${GITHUB_SHA:0:8}/cucumber/report.json" + --format html:"reports/${GITHUB_SHA:0:8}/cucumber/index.html" 2>&1 + echo "exit_code=$?" >> "${GITHUB_OUTPUT}" - name: Publish cucumber reports if: always() @@ -88,7 +88,7 @@ jobs: if: always() shell: bash run: | - if [ "${{ steps.cucumber-tests.outcome }}" = "success" ]; then + if [ "${{ steps.cucumber-tests.outputs.exit_code }}" = "0" ]; then STATUS="success" DESC="Cucumber tests passed" else