1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

Store screenshots on failure

This commit is contained in:
Patrik J. Braun 2023-09-20 21:30:25 +02:00
parent 4bbc3a4e68
commit 617a0bbd76

View File

@ -68,6 +68,13 @@ jobs:
uses: cypress-io/github-action@v6
with:
start: npm run start-e2e-server
# after the test run completes store screenshots
- uses: actions/upload-artifact@v3
if: failure() # Store screenshots only on failures
with:
name: cypress-screenshots
path: test/cypress/screenshots
if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn`
create-release:
runs-on: [ubuntu-latest]