Skip to content

Commit

Permalink
Run e2e tests on deploy.
Browse files Browse the repository at this point in the history
This couldn't be done in the original PR because the E2E tests needed to
be deployed first but this is done now so this can be added in.
  • Loading branch information
MancunianSam committed Feb 25, 2022
1 parent f2ab246 commit 9dfa1b2
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 9dfa1b2

Please sign in to comment.