e2e_mock_provider_tests #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: e2e_mock_provider_tests | |
on: | |
workflow_dispatch: | |
inputs: | |
registry: | |
description: 'Registry for pulling images' | |
required: true | |
default: 'gcr.io/k8s-staging-csi-secrets-store' | |
driverImageName: | |
description: 'Secret Store CSI driver image name' | |
required: true | |
default: 'driver' | |
crdImageName: | |
description: 'Secret Store CSI driver CRD image name' | |
required: true | |
default: 'driver-crds' | |
imageVersion: | |
description: 'image version for Secret Store CSI driver and CRDs' | |
required: true | |
default: 'v1.CHANGE_ME' | |
permissions: | |
contents: read | |
jobs: | |
e2e-test: | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 20 | |
strategy: | |
matrix: | |
KUBERNETES_VERSION: ["v1.24.12", "v1.25.8", "v1.26.3", "v1.27.1"] | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@128a63446a954579617e875aaab7d2978154e969 # v2.4.0 | |
with: | |
egress-policy: audit | |
- name: Checkout | |
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: Setup BATS | |
uses: mig4/setup-bats@af9a00deb21b5d795cabfeaa8d9060410377686d # v1.2.0 | |
with: | |
bats-version: 1.4.1 | |
- name: Setup Kind | |
uses: engineerd/setup-kind@aa272fe2a7309878ffc2a81c56cfe3ef108ae7d0 # v0.5.0 | |
with: | |
version: "v0.18.0" | |
image: "kindest/node:${{ matrix.KUBERNETES_VERSION }}" | |
- name: Test | |
run: | | |
# GH action sets this var by default. We need to explicitly unset it so that build commit hash is not appended to image tag. | |
unset CI | |
make e2e-helm-deploy e2e-mock-provider-container e2e-provider-deploy e2e-provider | |
env: | |
REGISTRY: ${{ github.event.inputs.registry }} | |
IMAGE_NAME: ${{ github.event.inputs.driverImageName }} | |
CRD_IMAGE_NAME: ${{ github.event.inputs.crdImageName }} | |
IMAGE_VERSION: ${{ github.event.inputs.imageVersion }} |