Skip to content

Commit

Permalink
UID2-2339 create test pipeline for gcp (#315)
Browse files Browse the repository at this point in the history
* Add `operator_type` as inputs

* Use v2 of the shared pipeline

* Use `gcp` and `azure` instead of private

* Use `kcc-UID2-2339-create-test-pipeline-for-gcp` branch for testing

* Add run-name

* Fix E2E tests run name

* Use v2 version for shared actions
  • Loading branch information
cYKatherine authored Jan 9, 2024
1 parent 831ff8e commit 6a0644a
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/run-e2e-tests-on-operator.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
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
Expand Down Expand Up @@ -36,6 +44,10 @@ on:
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
Expand Down Expand Up @@ -72,8 +84,9 @@ on:
jobs:
e2e-test:
name: E2E Test
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-run-e2e-tests.yaml@v2.7
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 }}
Expand All @@ -82,4 +95,7 @@ jobs:
optout_branch: ${{ inputs.optout_branch }}
admin_branch: ${{ inputs.admin_branch }}
operator_branch: ${{ github.ref }}
secrets: inherit
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

0 comments on commit 6a0644a

Please sign in to comment.