Skip to content

Commit

Permalink
Fix kind workflow (hashicorp#2191)
Browse files Browse the repository at this point in the history
  • Loading branch information
arybolovlev authored Jul 14, 2023
1 parent c794ec6 commit 061ae4b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/acceptance_tests_kind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,35 @@ 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:
go-version-file: 'go.mod'
- 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:
Expand All @@ -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
Expand Down

0 comments on commit 061ae4b

Please sign in to comment.