From 061ae4b202600bbdf83ba44230fd12e389c0b4df Mon Sep 17 00:00:00 2001 From: Aleksandr Rybolovlev Date: Fri, 14 Jul 2023 15:39:03 +0200 Subject: [PATCH] Fix kind workflow (#2191) --- .github/workflows/acceptance_tests_kind.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/acceptance_tests_kind.yaml b/.github/workflows/acceptance_tests_kind.yaml index 76f1444d5f..3ddc391ef3 100644 --- a/.github/workflows/acceptance_tests_kind.yaml +++ b/.github/workflows/acceptance_tests_kind.yaml @@ -5,25 +5,27 @@ on: inputs: kindVersion: description: The kind version - default: 0.17.0 # Kubernetes version: 1.25.X + default: 0.20.0 # Kubernetes version: 1.27.X runTests: description: The regex passed to the -run option of `go test` default: ".*" terraformVersion: description: Terraform version - default: 1.4.0 + default: 1.5.3 schedule: - cron: '0 21 * * *' env: KUBECONFIG: ${{ github.workspace }}/.kube/config KIND_VERSION: ${{ github.event.inputs.kind_version || vars.KIND_VERSION }} + TERRAFORM_VERSION: ${{ github.event.inputs.terraformVersion || vars.TERRAFORM_VERSION }} jobs: acceptance_tests: runs-on: ubuntu-latest steps: - - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 + - name: Checkout repository + uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 - name: Set up Go uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 with: @@ -31,7 +33,7 @@ jobs: - name: Install Terraform uses: hashicorp/setup-terraform@633666f66e0061ca3b725c73b2ec20cd13a8fdd1 # v2.0.3 with: - terraform_version: ${{ github.event.inputs.terraformVersion }} + terraform_version: ${{ env.TERRAFORM_VERSION }} - name: Setup kind uses: helm/kind-action@fa81e57adff234b2908110485695db0f181f3c67 # v1.7.0 with: @@ -41,7 +43,7 @@ jobs: - name: Run Acceptance Test Suite env: KUBE_CONFIG_PATH: ${{ env.KUBECONFIG }} - TF_ACC_TERRAFORM_VERSION: ${{ github.event.inputs.terraformVersion }} + TF_ACC_TERRAFORM_VERSION: ${{ env.TERRAFORM_VERSION }} TESTARGS: -run '${{ github.event.inputs.runTests }}' run: | make testacc