report failing status
This commit is contained in:
@@ -68,6 +68,7 @@ jobs:
|
|||||||
path: .ci
|
path: .ci
|
||||||
|
|
||||||
- name: Run cucumber tests
|
- name: Run cucumber tests
|
||||||
|
id: cucumber-tests
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@@ -79,15 +80,24 @@ jobs:
|
|||||||
--format json:"reports/${GITHUB_SHA:0:8}/cucumber/report.json"
|
--format json:"reports/${GITHUB_SHA:0:8}/cucumber/report.json"
|
||||||
|
|
||||||
- name: Publish cucumber reports
|
- name: Publish cucumber reports
|
||||||
|
if: always()
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
bash .ci/scripts/publish-git-pages.sh "reports/${GITHUB_SHA:0:8}/cucumber"
|
bash .ci/scripts/publish-git-pages.sh "reports/${GITHUB_SHA:0:8}/cucumber"
|
||||||
|
|
||||||
- name: Set cucumber commit status
|
- name: Set cucumber commit status
|
||||||
|
if: always()
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
bash .ci/scripts/report-status.sh success \
|
if [ "${{ steps.cucumber-tests.outcome }}" = "success" ]; then
|
||||||
"Cucumber tests" \
|
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/" \
|
"https://${PAGES_HOST}/${GITHUB_REPOSITORY}/reports/${GITHUB_SHA:0:8}/cucumber/" \
|
||||||
ci-cucumber
|
ci-cucumber
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user