forked from hashicorp/terraform-provider-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (41 loc) · 1.45 KB
/
acceptance_tests_kind.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
name: Acceptance Tests (kind)
on:
workflow_dispatch:
inputs:
kindVersion:
description: The kind version
default: 0.17.0 # Kubernetes version: 1.25.X
runTests:
description: The regex passed to the -run option of `go test`
default: ".*"
terraformVersion:
description: Terraform version
default: 1.4.0
env:
KUBECONFIG: ${{ github.workspace }}/.kube/config
jobs:
acceptance_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
- name: Set up Go
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version-file: 'go.mod'
- name: Install Terraform
uses: hashicorp/setup-terraform@633666f66e0061ca3b725c73b2ec20cd13a8fdd1 # v2.0.3
with:
terraform_version: ${{ github.event.inputs.terraformVersion }}
- name: Setup kind
uses: helm/kind-action@d8ccf8fb623ce1bb360ae2f45f323d9d5c5e9f00 # v1.5.0
with:
wait: 2m
version: v${{ github.event.inputs.kindVersion }}
config: .github/config/acceptance_tests_kind_config.yaml
- name: Run Acceptance Test Suite
env:
KUBE_CONFIG_PATH: ${{ env.KUBECONFIG }}
TF_ACC_TERRAFORM_VERSION: ${{ github.event.inputs.terraformVersion }}
TESTARGS: -run '${{ github.event.inputs.runTests }}'
run: |
make testacc