Skip to content

Commit

Permalink
✅ Add artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
foysalit committed Apr 5, 2024
1 parent 1f01dfb commit 8301398
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Artifacts
on: [push]
jobs:
cypress-run:
runs-on: ubuntu-20.04
name: Artifacts
steps:
- uses: actions/checkout@v2
- uses: cypress-io/github-action@v2
with:
env: lastName=Smith
env:
CYPRESS_firstName: Joe

# after the test run completes
# store videos and any screenshots
# NOTE: screenshots will be generated only if E2E test failed
# thus we store screenshots only on failures
# Alternative: create and commit an empty cypress/screenshots folder
# to always have something to upload
- uses: actions/upload-artifact@v2
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
# Test run video was always captured, so this action uses "always()" condition
- uses: actions/upload-artifact@v2
if: always()
with:
name: cypress-videos
path: cypress/videos

0 comments on commit 8301398

Please sign in to comment.