Skip to content

Commit

Permalink
chore: saving videos and screenshots for e2e tests only on failure
Browse files Browse the repository at this point in the history
the limit of storage is not far. Most of the place is took by the videos
and screenshots of the e2e tests. We are usually looking at them only on
failure. This should save a lot of space.

Signed-off-by: Aurélien Pupier <[email protected]>
  • Loading branch information
apupier authored and lordrip committed Sep 17, 2024
1 parent 972d250 commit 06ecb09
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,14 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: 💾 Save videos
if: always()
if: failure()
uses: actions/upload-artifact@v4
with:
name: videos-firefox
path: packages/ui-tests/cypress/videos

- name: 💾 Save screenshots
if: always()
if: failure()
uses: actions/upload-artifact@v4
with:
name: screenshots-firefox
Expand Down Expand Up @@ -170,14 +170,14 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: 💾 Save videos
if: always()
if: failure()
uses: actions/upload-artifact@v4
with:
name: videos-chrome
path: packages/ui-tests/cypress/videos

- name: 💾 Save screenshots
if: always()
if: failure()
uses: actions/upload-artifact@v4
with:
name: screenshots-chrome
Expand Down Expand Up @@ -229,14 +229,14 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: 💾 Save videos
if: always()
if: failure()
uses: actions/upload-artifact@v4
with:
name: videos-edge
path: packages/ui-tests/cypress/videos

- name: 💾 Save screenshots
if: always()
if: failure()
uses: actions/upload-artifact@v4
with:
name: screenshots-edge
Expand Down

0 comments on commit 06ecb09

Please sign in to comment.