File tree Expand file tree Collapse file tree 4 files changed +22
-25
lines changed
Expand file tree Collapse file tree 4 files changed +22
-25
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11#! /bin/bash
2-
32set -eo pipefail
43
54PWD_ROOT=" ${PWD} "
5+ cat > " ${PWD_ROOT} /localbuild.tfrc" << EOF
6+ provider_installation {
7+ dev_overrides {
8+ "registry.terraform.io/castai/castai" = "${PWD_ROOT} "
9+ }
10+ direct {}
11+ }
12+ EOF
13+ echo " ${PWD_ROOT} /localbuild.tfrc"
14+ export TF_CLI_CONFIG_FILE=" ${PWD_ROOT} /localbuild.tfrc"
615
716while IFS=' ' read -r -d $' \0' TFPROJECT; do
817 echo " Validating ${PWD_ROOT} /$TFPROJECT "
918 cd " ${PWD_ROOT} /$TFPROJECT "
1019 terraform init || terraform init -upgrade
1120 terraform validate
1221done < <( find examples/eks examples/gke examples/aks -mindepth 1 -maxdepth 1 -type d -print0)
22+
23+ rm " ${TF_CLI_CONFIG_FILE} "
24+ unset TF_CLI_CONFIG_FILE
Original file line number Diff line number Diff line change 2323 - name : Print tf version
2424 run : terraform version
2525
26+ - name : Setup Go 1.24.0
27+ uses : actions/setup-go@v5
28+ with :
29+ go-version : ' 1.24.0'
30+ cache : true
31+
32+ - name : Build binary
33+ run : go build .
34+
2635 - name : Validate Terraform examples
2736 id : validate_examples
2837 run : make validate-terraform-examples
Original file line number Diff line number Diff line change @@ -67,12 +67,6 @@ testacc-cloud-agnostic: build
6767 @echo " ==> Running cloud agnostic acceptance tests"
6868 TF_ACC=1 go test ./castai/... ' -run=^TestAccCloudAgnostic_' -v -timeout 50m
6969
70- .PHONY : init-examples
71- init-examples : build
72- init-examples :
73- @echo " ==> Creating symlinks for example/ projects to terraform-provider-castai binary"
74- @.ci/scripts/init-examples.sh
75-
7670.PHONY : validate-terraform-examples
7771validate-terraform-examples :
7872validate-terraform-examples :
You can’t perform that action at this time.
0 commit comments