Skip to content

Commit e437cc2

Browse files
committed
ci: Update GitHub Actions and pre-commit hook versions
- Update actions/checkout from v2 to v4 - Update hashicorp/setup-terraform from v1 to v3 - Add actions/setup-go@v5 with Go 1.23 - Add CI step to verify generated files are up-to-date - Update pre-commit-terraform from v1.74.1 to v1.104.0 - Update pre-commit-hooks from v4.3.0 to v5.0.0
1 parent a837381 commit e437cc2

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

.github/workflows/pr-validation.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,18 @@ jobs:
77
name: TF Validate
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
11-
- uses: hashicorp/setup-terraform@v1
10+
- uses: actions/checkout@v4
11+
12+
- uses: actions/setup-go@v5
13+
with:
14+
go-version: '1.23'
15+
16+
- uses: hashicorp/setup-terraform@v3
17+
18+
- name: Verify generated files are up-to-date
19+
run: |
20+
go run main.go
21+
git diff --exit-code main.tf outputs.tf || (echo "Generated files are out of date. Run 'make generate' and commit the changes." && exit 1)
1222
1323
- name: Terraform fmt
1424
id: fmt

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
# See http://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/antonbabenko/pre-commit-terraform
5-
rev: v1.74.1
5+
rev: v1.104.0
66
hooks:
77
- id: terraform_fmt
88
- id: terraform_docs
99
- repo: https://github.com/pre-commit/pre-commit-hooks
10-
rev: v4.3.0
10+
rev: v5.0.0
1111
hooks:
1212
- id: check-merge-conflict
1313
- id: trailing-whitespace

0 commit comments

Comments
 (0)