Skip to content

Commit

Permalink
PI-2302 Fix e2e tests in pipeline after switch to GitHub app
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-bcl committed Aug 6, 2024
1 parent 80e4e3a commit 7dee7c2
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,11 @@ jobs:
outputs:
changes: ${{ steps.merge-changes.outputs.changes }}
version: ${{ needs.build.outputs.version }}
app-token: ${{ steps.app-token.outputs.token }}
steps:
- uses: actions/checkout@v4
- name: Merge changes from the matrix build
id: merge-changes
uses: ./.github/actions/merge-changes
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.BOT_APP_ID }}
private-key: ${{ secrets.BOT_APP_PRIVATE_KEY }}

analyse:
name: Analyse
Expand Down Expand Up @@ -73,15 +67,29 @@ jobs:

end-to-end-tests:
name: Run end-to-end tests
uses: ministryofjustice/hmpps-probation-integration-e2e-tests/.github/workflows/test-remote.yml@main
needs:
- post-build
- deploy-to-test
- deploy-to-preprod
with:
projects: ${{ needs.post-build.outputs.changes }}
secrets:
token: ${{ needs.post-build.outputs.app-token }}
runs-on: ubuntu-latest
timeout-minutes: 60
outputs:
failed-projects: ${{ steps.run.outputs.failed-projects }}
passed-projects: ${{ steps.run.outputs.passed-projects }}
report-url: ${{ steps.run.outputs.report-url }}
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.BOT_APP_ID }}
private-key: ${{ secrets.BOT_APP_PRIVATE_KEY }}
repositories: hmpps-probation-integration-e2e-tests
- name: Run tests
id: run
uses: ministryofjustice/hmpps-probation-integration-e2e-tests/.github/actions/run-tests@main
with:
projects: ${{ needs.post-build.outputs.changes }}
token: ${{ steps.app-token.outputs.token }}

report-test-failures:
name: Failed testing
Expand Down

0 comments on commit 7dee7c2

Please sign in to comment.