From f1d2e2274ddabeca194b0a3013668fce487e650c Mon Sep 17 00:00:00 2001 From: Diegogtzt03 <65473367+Diegogtz03@users.noreply.github.com> Date: Wed, 12 Jun 2024 22:05:13 -0600 Subject: [PATCH] chore: Update frontend_deploy.yml to include uploading Cypress screenshots on failure --- .github/workflows/frontend_deploy.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/frontend_deploy.yml b/.github/workflows/frontend_deploy.yml index 993f5fa..6d3b745 100644 --- a/.github/workflows/frontend_deploy.yml +++ b/.github/workflows/frontend_deploy.yml @@ -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"