mirror of
https://github.com/IT4Change/boilerplate-e2e-cypress-cucumber.git
synced 2025-12-13 04:55:50 +00:00
set current pr number in e2e test workflow
This commit is contained in:
parent
134377b0da
commit
b66dc69a94
8
.github/workflows/e2e.run.tests.yml
vendored
8
.github/workflows/e2e.run.tests.yml
vendored
@ -11,18 +11,18 @@ jobs:
|
||||
uses: actions/checkout@master
|
||||
|
||||
- name: E2E - Run all tests
|
||||
id: e2e-tests
|
||||
id: e2e-run
|
||||
uses: cypress-io/github-action@v6
|
||||
|
||||
- name: E2E | if tests failed, compile html report
|
||||
if: ${{ failure() && steps.e2e-tests.conclusion == 'failure' }}
|
||||
if: ${{ failure() && steps.e2e-run.conclusion == 'failure' }}
|
||||
run: |
|
||||
cd cypress/
|
||||
node create-cucumber-html-report.js
|
||||
|
||||
- name: E2E | if tests failed, upload report
|
||||
if: ${{ failure() && steps.e2e-tests.conclusion == 'failure' }}
|
||||
if: ${{ failure() && steps.e2e-run.conclusion == 'failure' }}
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: boilerplate-e2e-test-report-pr${{ needs.e2e-tests.outputs.pull_request.number }}
|
||||
name: boilerplate-e2e-test-report-pr-${{ e2e-tests.outputs.pull_request.number }}
|
||||
path: /home/runner/work/boilerplate-e2e-cypress-cucumber/boilerplate-e2e-cypress-cucumber/cypress/reports/e2e_html_report
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user