-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathend-to-end-tests-on-pull-request.yml
More file actions
38 lines (32 loc) · 1.07 KB
/
end-to-end-tests-on-pull-request.yml
File metadata and controls
38 lines (32 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: E2E tests on PR
on: [pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.head.ref }}
cancel-in-progress: true
permissions: {}
jobs:
aws-e2e-flow:
if: github.event.pull_request.head.repo.full_name == github.repository
name: AWS deployment E2E tests
permissions:
id-token: write
contents: write
uses: ./.github/workflows/end-to-end-tests-aws.yml
with:
git_reference_for_database_image: ${{ github.base_ref }}
git_reference_for_application_image: ${{ github.head_ref }}
local-e2e-flow:
if: github.event.pull_request.head.repo.full_name != github.repository
name: Local E2E tests
uses: ./.github/workflows/end-to-end-tests-local.yml
ensure-run-success:
name: Ensure E2E tests ran successfully
runs-on: ubuntu-latest
needs: [aws-e2e-flow, local-e2e-flow]
if: always()
steps:
- name: Fail if neither end-to-end job succeeded
if: |
needs.aws-e2e-flow.result != 'success' &&
needs.local-e2e-flow.result != 'success'
run: exit 1