Skip to content

Commit cbe7321

Browse files
authored
chore: add setup-terraform step to workflows (#221)
* chore: add setup-terraform step to workflows GHA now use Ubuntu 24.0 and do not ship with terraform in the image. This needs to be setup manually. * chore: update go linting level=warning msg="[lintersdb] The name \"vet\" is deprecated. The linter has been renamed to: govet." level=warning msg="The linter 'exportloopref' is deprecated (since v1.60.2) due to: Since Go1.22 (loopvar) this linter is no longer relevant. Replaced by copyloopvar." level=warning msg="The linter 'tenv' is deprecated (since v1.64.0) due to: Duplicate feature another linter. Replaced by usetesting." level=error msg="[linters_context] exportloopref: This linter is fully inactivated: it will not produce any reports."
1 parent f187d9a commit cbe7321

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/generate-json.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v4
18+
- uses: hashicorp/setup-terraform@v3
1819
- uses: actions/setup-go@v5
1920
with:
2021
go-version-file: 'go.mod'

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
with:
4545
go-version-file: 'go.mod'
4646
cache: true
47+
- uses: hashicorp/setup-terraform@v3
4748
- run: go generate ./...
4849
- name: git diff
4950
run: |

.golangci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ linters:
99
enable:
1010
- durationcheck
1111
- errcheck
12-
- exportloopref
12+
- copyloopvar
1313
- forcetypeassert
1414
- godot
1515
- gofmt
@@ -20,8 +20,8 @@ linters:
2020
- nilerr
2121
- predeclared
2222
- staticcheck
23-
- tenv
23+
- usetesting
2424
- unconvert
2525
- unparam
2626
- unused
27-
- vet
27+
- govet

0 commit comments

Comments
 (0)