Skip to content

Commit 11b13f7

Browse files
committed
chore: Only test against the latest version of Terraform
1 parent 9a7812f commit 11b13f7

File tree

2 files changed

+16
-21
lines changed

2 files changed

+16
-21
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: Release
66
on:
77
push:
88
tags:
9-
- 'v*'
9+
- "v*"
1010

1111
# Releases need permissions to read and write the repository contents.
1212
# GitHub considers creating releases and uploading assets as writing contents.
@@ -17,22 +17,22 @@ jobs:
1717
goreleaser:
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
20+
- uses: actions/checkout@v5
2121
with:
2222
# Allow goreleaser to access older tag information.
2323
fetch-depth: 0
24-
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
24+
- uses: actions/setup-go@v6
2525
with:
26-
go-version-file: 'go.mod'
26+
go-version-file: "go.mod"
2727
cache: true
2828
- name: Import GPG key
29-
uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0
29+
uses: crazy-max/ghaction-import-gpg@v6
3030
id: import_gpg
3131
with:
3232
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
3333
passphrase: ${{ secrets.PASSPHRASE }}
3434
- name: Run GoReleaser
35-
uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
35+
uses: goreleaser/goreleaser-action@v6
3636
with:
3737
args: release --clean
3838
env:

.github/workflows/test.yml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,28 @@ jobs:
2222
runs-on: ubuntu-latest
2323
timeout-minutes: 5
2424
steps:
25-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26-
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
25+
- uses: actions/checkout@v5
26+
- uses: actions/setup-go@v6
2727
with:
2828
go-version-file: "go.mod"
2929
cache: true
3030
- run: go mod download
3131
- run: go build -v .
3232
- name: Run linters
33-
uses: golangci/golangci-lint-action@e0ebdd245eea59746bb0b28ea6a9871d3e35fbc9 # v6.3.3
33+
uses: golangci/golangci-lint-action@v8
3434
with:
3535
version: latest
3636

3737
generate:
3838
runs-on: ubuntu-latest
3939
steps:
40-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
41-
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
40+
- uses: actions/checkout@v5
41+
- uses: actions/setup-go@v6
4242
with:
4343
go-version-file: "go.mod"
4444
cache: true
4545
# We need the latest version of Terraform for our documentation generation to use
46-
- uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
46+
- uses: hashicorp/setup-terraform@v3
4747
with:
4848
terraform_wrapper: false
4949
- run: make generate
@@ -61,20 +61,15 @@ jobs:
6161
strategy:
6262
fail-fast: false
6363
matrix:
64-
# list whatever Terraform versions here you would like to support
6564
terraform:
66-
- "1.0.*"
67-
- "1.1.*"
68-
- "1.2.*"
69-
- "1.3.*"
70-
- "1.4.*"
65+
- "1.13.*"
7166
steps:
72-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
73-
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
67+
- uses: actions/checkout@v5
68+
- uses: actions/setup-go@v6
7469
with:
7570
go-version-file: "go.mod"
7671
cache: true
77-
- uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
72+
- uses: hashicorp/setup-terraform@v3
7873
with:
7974
terraform_version: ${{ matrix.terraform }}
8075
terraform_wrapper: false

0 commit comments

Comments
 (0)