mirror of
https://github.com/IT4Change/boilerplate-e2e-cypress-cucumber.git
synced 2026-03-01 12:44:15 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8e8c483db8...de0fac2e45)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: 6.0.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
39 lines
1.3 KiB
YAML
39 lines
1.3 KiB
YAML
name: e2e:run:tests
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
e2e-tests:
|
|
name: Run all E2E tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
|
|
- name: Set Node version
|
|
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.0.0
|
|
with:
|
|
node-version-file: '.tool-versions'
|
|
|
|
- name: E2E - Run all tests
|
|
id: e2e-run
|
|
uses: cypress-io/github-action@v7
|
|
|
|
- name: E2E | if tests failed, compile html report
|
|
if: ${{ failure() && steps.e2e-run.conclusion == 'failure' }}
|
|
run: |
|
|
cd cypress/
|
|
npx tsx create-cucumber-html-report.ts
|
|
|
|
- name: Get PR number
|
|
if: ${{ failure() && steps.e2e-run.conclusion == 'failure' }}
|
|
uses: jwalton/gh-find-current-pr@master
|
|
id: pr-number
|
|
|
|
- name: E2E | if tests failed, upload report
|
|
if: ${{ failure() && steps.e2e-run.conclusion == 'failure' }}
|
|
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
|
|
with:
|
|
name: boilerplate-e2e-test-report-pr-${{ steps.pr-number.outputs.pr }}
|
|
path: /home/runner/work/boilerplate-e2e-cypress-cucumber/boilerplate-e2e-cypress-cucumber/cypress/reports/e2e_html_report
|