-
Notifications
You must be signed in to change notification settings - Fork 77
49 lines (46 loc) · 1.26 KB
/
e2e-test-untrusted.yaml
File metadata and controls
49 lines (46 loc) · 1.26 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
39
40
41
42
43
44
45
46
47
48
49
name: "E2E Tests (Untrusted)"
on:
pull_request_target:
permissions:
id-token: write
contents: read
jobs:
approval:
name: Approval Gate
environment: "approval-gate"
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id }}
steps:
- name: Approval Gate
run: |
echo "Approved!"
e2e:
name: "E2E Tests (${{ matrix.region }})"
uses: ./.github/workflows/e2e-tests.yaml
strategy:
matrix:
region:
- 'us-east-1'
needs: approval
with:
environment: "${{ matrix.region }}-untrusted"
ref: ${{ github.event.pull_request.head.sha }}
secrets: inherit
e2e-rosa:
name: E2E ROSA Tests
uses: ./.github/workflows/e2e-rosa-tests.yaml
needs: approval
with:
environment: "rosa-untrusted"
ref: ${{ github.event.pull_request.head.sha }}
secrets: inherit
outcome:
name: All E2E Tests Passed
if: ${{ always() && github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id }}
runs-on: ubuntu-latest
needs:
- e2e
- e2e-rosa
steps:
- name: Verify jobs succeeded
run: echo '${{ toJSON(needs) }}' | jq -e 'to_entries | all(.value.result == "success")'