diff --git a/.gitea/workflows/build-feature.yml b/.gitea/workflows/build-feature.yml index ecda510..e02c7f2 100644 --- a/.gitea/workflows/build-feature.yml +++ b/.gitea/workflows/build-feature.yml @@ -68,6 +68,7 @@ jobs: path: .ci - name: Run cucumber tests + id: cucumber-tests continue-on-error: true shell: bash run: | @@ -79,15 +80,24 @@ jobs: --format json:"reports/${GITHUB_SHA:0:8}/cucumber/report.json" - name: Publish cucumber reports + if: always() shell: bash run: | bash .ci/scripts/publish-git-pages.sh "reports/${GITHUB_SHA:0:8}/cucumber" - name: Set cucumber commit status + if: always() shell: bash run: | - bash .ci/scripts/report-status.sh success \ - "Cucumber tests" \ + if [ "${{ steps.cucumber-tests.outcome }}" = "success" ]; then + STATUS="success" + DESC="Cucumber tests passed" + else + STATUS="failure" + DESC="Cucumber tests FAILED" + fi + bash .ci/scripts/report-status.sh "$STATUS" \ + "$DESC" \ "https://${PAGES_HOST}/${GITHUB_REPOSITORY}/reports/${GITHUB_SHA:0:8}/cucumber/" \ ci-cucumber