Skip to content

Commit

Permalink
ci: add coverage for more Terraform versions (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmichels authored Dec 5, 2024
1 parent 9f574c3 commit 4e04d6d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# allow goreleaser to access older tag information
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
cache: true
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v5.2.0
uses: crazy-max/ghaction-import-gpg@v6.2.0
id: import_gpg
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4.2.0
uses: goreleaser/goreleaser-action@v6.1.0
with:
args: release --clean
env:
Expand Down
21 changes: 15 additions & 6 deletions .github/workflows/testacc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,30 @@ on:
env:
GOPROXY: https://proxy.golang.org,direct
DEBIAN_FRONTEND: noninteractive
GO_VERSION: "1.21"
GO_VERSION: "1.23"

jobs:
testacc:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
terraform_version: ["~1.4.0", "~1.5.0", "~1.6.0"]
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@v3
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- uses: hashicorp/setup-terraform@v2
- uses: hashicorp/setup-terraform@v3
with:
terraform_version: ${{ matrix.terraform_version }}
terraform_wrapper: false
Expand Down

0 comments on commit 4e04d6d

Please sign in to comment.