Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion codefresh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- 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..."
Expand Down