-
Notifications
You must be signed in to change notification settings - Fork 17
101 lines (100 loc) · 3.54 KB
/
run-e2e-tests-on-operator.yaml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: Run operator E2E tests
run-name: ${{ format('Run {0} operator E2E tests', inputs.operator_type) }} by @${{ github.actor }}
on:
workflow_dispatch:
inputs:
operator_type:
type: choice
description: The type of operator [either public or gcp or azure]
options:
- public
- gcp
- azure
operator_image_version:
description: The pipeline will run the E2E test with this operator image version
type: string
default: 'latest'
core_image_version:
description: The pipeline will run the E2E test with this core image version
type: string
default: 'latest'
optout_image_version:
description: The pipeline will run the E2E test with this optout image version
type: string
default: 'latest'
e2e_image_version:
description: The pipeline will run the E2E test with this e2e image version
type: string
default: 'latest'
core_branch:
description: 'The branch of UID2-core to test on'
type: string
default: 'main'
optout_branch:
description: 'The branch of UID2-optout to test on'
type: string
default: 'main'
admin_branch:
description: 'The branch of UID2-admin to test on'
type: string
default: 'main'
operator_branch:
description: 'The branch of UID2-operator to test on'
type: string
default: 'main'
workflow_call:
inputs:
operator_type:
description: The type of operator [either public or gcp or azure]
type: string
default: 'public'
operator_image_version:
description: The pipeline will run the E2E test with this operator image version
type: string
default: 'latest'
core_image_version:
description: The pipeline will run the E2E test with this core image version
type: string
default: 'latest'
optout_image_version:
description: The pipeline will run the E2E test with this optout image version
type: string
default: 'latest'
e2e_image_version:
description: The pipeline will run the E2E test with this e2e image version
type: string
default: 'latest'
core_branch:
description: 'The branch of UID2-core to test on'
type: string
default: 'main'
optout_branch:
description: 'The branch of UID2-optout to test on'
type: string
default: 'main'
admin_branch:
description: 'The branch of UID2-admin to test on'
type: string
default: 'main'
operator_branch:
description: 'The branch of UID2-operator to test on'
type: string
default: 'main'
jobs:
e2e-test:
name: E2E Test
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-run-e2e-tests.yaml@v2
with:
operator_type: ${{ inputs.operator_type }}
operator_image_version: ${{ inputs.operator_image_version }}
core_image_version: ${{ inputs.core_image_version }}
optout_image_version: ${{ inputs.optout_image_version }}
e2e_image_version: ${{ inputs.e2e_image_version }}
core_branch: ${{ inputs.core_branch }}
optout_branch: ${{ inputs.optout_branch }}
admin_branch: ${{ inputs.admin_branch }}
operator_branch: ${{ github.ref }}
gcp_workload_identity_provider_id: ${{ vars.GCP_WORKLOAD_IDENTITY_PROVIDER_ID }}
gcp_service_account: ${{ vars.GCP_SERVICE_ACCOUNT }}
gcp_project: ${{ vars.GCP_PROJECT }}
secrets: inherit