Skip to content

Commit

Permalink
chore: Update frontend_deploy.yml to include uploading Cypress screen…
Browse files Browse the repository at this point in the history
…shots on failure
  • Loading branch information
Diegogtz03 committed Jun 13, 2024
1 parent f4b84b9 commit f1d2e22
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/frontend_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ jobs:
CYPRESS_SITE_NAME: ${{ secrets.NEXTAUTH_URL }}
CYPRESS_NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }}

- name: Upload screenshots
uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots

- name: Send Deploy Failure Message
if: failure()
run: curl -s -X POST "${{ secrets.DISCORD_WEBHOOK }}" -d "content=💥 Front Testing Failed"
Expand Down

0 comments on commit f1d2e22

Please sign in to comment.