Skip to content

ci: add coverage for more Terraform versions #78

ci: add coverage for more Terraform versions

ci: add coverage for more Terraform versions #78

Workflow file for this run

name: Acceptance Tests
on:
pull_request:
types: ["opened", "synchronize"]
paths:
- "**.go"
- go.mod
- ".github/workflows/testacc.yaml"
# allow this workflow to be called from other workflows
workflow_call:
env:
GOPROXY: https://proxy.golang.org,direct
DEBIAN_FRONTEND: noninteractive
GO_VERSION: "1.23"
jobs:
testacc:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
terraform_version: ["~1.4.0", "~1.5.0", "~1.6.0", "~1.7.0", "~1.8.0", "~1.9.0", "~1.10.0"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- uses: hashicorp/setup-terraform@v3
with:
terraform_version: ${{ matrix.terraform_version }}
terraform_wrapper: false
- name: Run acceptance tests
run: echo Using terraform version $(terraform version --json | jq -r .terraform_version) && make testacc