Skip to content

Commit

Permalink
Add Cypress Notifier task to Workflow
Browse files Browse the repository at this point in the history
* This will route the result of the Cypress tests into a Slack channel
  • Loading branch information
DrizzlyOwl committed Dec 3, 2024
1 parent 91f8731 commit c27b4af
Show file tree
Hide file tree
Showing 3 changed files with 1,573 additions and 102 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/cypress-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ on:
required: true
SIGNIN_URL:
required: true
SLACK_WEBHOOK_URL:
required: true
workflow_dispatch:
inputs:
environment:
Expand Down Expand Up @@ -57,3 +59,9 @@ jobs:
with:
name: screenshots
path: Dfe.Academies.External.Web/CypressTests/cypress/screenshots

- name: Report results
if: always()
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 }}
Loading

0 comments on commit c27b4af

Please sign in to comment.