From 9dfa1b241e007e5c68d70e0015c997634dbe115a Mon Sep 17 00:00:00 2001 From: MancunianSam Date: Fri, 25 Feb 2022 15:55:46 +0000 Subject: [PATCH] Run e2e tests on deploy. 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. --- .github/workflows/deploy.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e671ffc..45371ec 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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/request-action@v2.x + 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/slack-github-action@v1.18.0