diff --git a/codefresh.yml b/codefresh.yml index cb2dc2e6..8e04ef60 100644 --- a/codefresh.yml +++ b/codefresh.yml @@ -22,15 +22,24 @@ steps: go_test: title: "Run tests" stage: test - image: goreleaser/goreleaser:v1.17.0 + image: golang:1.18.10-alpine3.17 environment: - TF_ACC="test" + - CGO_ENABLED=0 commands: + - go install github.com/warrensbox/terraform-switcher@0.13.1308 + - terraform-switcher --latest-stable ${TF_VERSION} - go test -v ./... retry: maxAttempts: 3 delay: 5 exponentialFactor: 2 + matrix: + # The following will resolve to their latest patch version + environment: + - TF_VERSION=1.3.0 + - TF_VERSION=1.4.0 + - TF_VERSION=1.5.0 prepare_env_vars: title: "Preparing environment variables..."