From 5909b167264ce658070c87e1800dc05cbb1c4970 Mon Sep 17 00:00:00 2001 From: FahadDarw Date: Thu, 12 Dec 2024 16:33:45 +0000 Subject: [PATCH] added_Slack_Notification --- .github/workflows/cypress-tests.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cypress-tests.yml b/.github/workflows/cypress-tests.yml index db832a1ec..8f6e73378 100644 --- a/.github/workflows/cypress-tests.yml +++ b/.github/workflows/cypress-tests.yml @@ -53,6 +53,12 @@ jobs: - name: Run cypress run: npm run cy:run -- --env URL='${{ secrets.URL }}',LOGIN_USERNAME=${{ secrets.LOGIN_USERNAME }},LOGIN_PASSWORD=${{ secrets.LOGIN_PASSWORD }},SIGNIN_URL=${{ secrets.SIGNIN_URL }} + - name: Generate report + if: always() + run: | + mkdir mochareports + npm run generate:html:report + - name: upload report uses: actions/upload-artifact@v4 if: failure() @@ -65,9 +71,4 @@ jobs: run: npm run cy:notify -- --custom-text="Environment ${{ inputs.environment }}, See more information https://github.com/DFE-Digital/Dfe.Academies.External/actions/runs/${{github.run_id}}" env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - - name: Generate report - if: always() - run: | - mkdir mochareports - npm run generate:html:report - \ No newline at end of file + \ No newline at end of file