kokeilu
This commit is contained in:
@@ -72,11 +72,11 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
mkdir -p "reports/${GITHUB_SHA:0:8}/cucumber"
|
mkdir -p "reports/${GITHUB_SHA:0:8}/cucumber"
|
||||||
|
set +e
|
||||||
npx cucumber-js \
|
npx cucumber-js \
|
||||||
--format json:"reports/${GITHUB_SHA:0:8}/cucumber/report.json" \
|
--format json:"reports/${GITHUB_SHA:0:8}/cucumber/report.json" \
|
||||||
--format html:"reports/${GITHUB_SHA:0:8}/cucumber/index.html" 2>&1 || \
|
--format html:"reports/${GITHUB_SHA:0:8}/cucumber/index.html" 2>&1
|
||||||
npx cucumber-js \
|
echo "exit_code=$?" >> "${GITHUB_OUTPUT}"
|
||||||
--format json:"reports/${GITHUB_SHA:0:8}/cucumber/report.json"
|
|
||||||
|
|
||||||
- name: Publish cucumber reports
|
- name: Publish cucumber reports
|
||||||
if: always()
|
if: always()
|
||||||
@@ -88,7 +88,7 @@ jobs:
|
|||||||
if: always()
|
if: always()
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ steps.cucumber-tests.outcome }}" = "success" ]; then
|
if [ "${{ steps.cucumber-tests.outputs.exit_code }}" = "0" ]; then
|
||||||
STATUS="success"
|
STATUS="success"
|
||||||
DESC="Cucumber tests passed"
|
DESC="Cucumber tests passed"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user