Skip to content

Commit

Permalink
Merge pull request #2 from nationalarchives/run-e2e-tests-on-deploy
Browse files Browse the repository at this point in the history
Run e2e tests on deploy.
  • Loading branch information
MancunianSam authored Feb 28, 2022
2 parents f2ab246 + 9dfa1b2 commit 521136f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ jobs:
run: |
git branch -f release-${{ github.event.inputs.environment }} HEAD
git push -f origin release-${{ github.event.inputs.environment }}
- name: Run E2E tests
if: github.event.inputs.environment != 'prod'
uses: octokit/[email protected]
with:
route: POST /repos/nationalarchives/tdr-e2e-tests/actions/workflows/ci.yml/dispatches
ref: master
inputs: "{\"environment\": \"${{ github.event.inputs.environment }}\"}"
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_PAT }}
- name: Send failure message
id: slack
uses: slackapi/[email protected]
Expand Down

0 comments on commit 521136f

Please sign in to comment.