Skip to content

Commit

Permalink
refactor: update cypress failures to artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Dec 25, 2020
1 parent e98c213 commit cb4c455
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,14 @@ jobs:
wait-on: 'http://localhost:8888'
config-file: test/cypress.json
browser: chrome
record: true
# record: true
env:
# pass the Dashboard record key as an environment variable
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# pass GitHub token to allow accurately detecting a build vs a re-run build
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v1
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots

0 comments on commit cb4c455

Please sign in to comment.