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:
parent
4bbc3a4e68
commit
617a0bbd76
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@ -68,6 +68,13 @@ jobs:
|
|||||||
uses: cypress-io/github-action@v6
|
uses: cypress-io/github-action@v6
|
||||||
with:
|
with:
|
||||||
start: npm run start-e2e-server
|
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:
|
create-release:
|
||||||
runs-on: [ubuntu-latest]
|
runs-on: [ubuntu-latest]
|
||||||
|
Loading…
Reference in New Issue
Block a user