Skip to content

Commit aed1975

Browse files
committed
Update actions
Signed-off-by: Wilfried Roset <[email protected]>
1 parent a139478 commit aed1975

File tree

2 files changed

+44
-46
lines changed

2 files changed

+44
-46
lines changed

.github/workflows/release.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,23 @@ name: release
1313
on:
1414
push:
1515
tags:
16-
- 'v*'
16+
- "v*"
1717
permissions:
1818
contents: write
1919
jobs:
2020
goreleaser:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- name: Checkout
24-
uses: actions/checkout@v4
24+
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.5.4
2525
with:
2626
fetch-depth: 0
2727
- name: Set up Go
28-
uses: actions/setup-go@v5
28+
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
2929
with:
30-
go-version-file: 'go.mod'
30+
go-version-file: "go.mod"
3131
- name: Import GPG key
32-
uses: crazy-max/ghaction-import-gpg@v5
32+
uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0
3333
id: import_gpg
3434
with:
3535
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}

.github/workflows/test.yml

+39-41
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ name: Tests
55
on:
66
pull_request:
77
paths-ignore:
8-
- 'README.md'
8+
- "README.md"
99
push:
1010
paths-ignore:
11-
- 'README.md'
11+
- "README.md"
1212
# For systems with an upstream API that could drift unexpectedly (like most SaaS systems, etc.),
1313
# we recommend testing at a regular interval not necessarily tied to code changes. This will
1414
# ensure you are alerted to something breaking due to an API change, even if the code did not
@@ -22,32 +22,31 @@ jobs:
2222
runs-on: ubuntu-latest
2323
timeout-minutes: 5
2424
steps:
25+
- name: Check out code into the Go module directory
26+
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
2527

26-
- name: Check out code into the Go module directory
27-
uses: actions/checkout@v3
28-
29-
- name: Set up Go
30-
uses: actions/setup-go@v3
31-
with:
32-
go-version-file: 'go.mod'
33-
cache: true
34-
id: go
28+
- name: Set up Go
29+
uses: actions/setup-go@v5
30+
with:
31+
go-version-file: "go.mod"
32+
cache: true
33+
id: go
3534

36-
- name: Get dependencies
37-
run: |
38-
go mod download
35+
- name: Get dependencies
36+
run: |
37+
go mod download
3938
40-
- name: Build
41-
run: |
42-
make build
39+
- name: Build
40+
run: |
41+
make build
4342
4443
generate:
4544
runs-on: ubuntu-latest
4645
steps:
4746
- uses: actions/checkout@v3
48-
- uses: actions/setup-go@v3
47+
- uses: actions/setup-go@v5
4948
with:
50-
go-version-file: 'go.mod'
49+
go-version-file: "go.mod"
5150
cache: true
5251
- run: go generate ./...
5352
- name: git diff
@@ -66,30 +65,29 @@ jobs:
6665
matrix:
6766
# list whatever Terraform versions here you would like to support
6867
terraform:
69-
- '1.6.*'
70-
- '1.7.*'
71-
- '1.8.*'
68+
- "1.6.*"
69+
- "1.7.*"
70+
- "1.8.*"
7271
steps:
72+
- name: Check out code into the Go module directory
73+
uses: actions/checkout@v3
7374

74-
- name: Check out code into the Go module directory
75-
uses: actions/checkout@v3
76-
77-
- name: Set up Go
78-
uses: actions/setup-go@v3
79-
with:
80-
go-version-file: 'go.mod'
81-
cache: true
82-
id: go
75+
- name: Set up Go
76+
uses: actions/setup-go@v5
77+
with:
78+
go-version-file: "go.mod"
79+
cache: true
80+
id: go
8381

84-
- uses: hashicorp/setup-terraform@v2
85-
with:
86-
terraform_version: ${{ matrix.terraform }}
87-
terraform_wrapper: false
82+
- uses: hashicorp/setup-terraform@v3
83+
with:
84+
terraform_version: ${{ matrix.terraform }}
85+
terraform_wrapper: false
8886

89-
- name: Get dependencies
90-
run: |
91-
go mod download
87+
- name: Get dependencies
88+
run: |
89+
go mod download
9290
93-
- name: TF acceptance tests
94-
timeout-minutes: 10
95-
run: make testacc
91+
- name: TF acceptance tests
92+
timeout-minutes: 10
93+
run: make testacc

0 commit comments

Comments
 (0)