File tree Expand file tree Collapse file tree 6 files changed +10
-40
lines changed Expand file tree Collapse file tree 6 files changed +10
-40
lines changed Original file line number Diff line number Diff line change 23
23
- name : Set up Go
24
24
uses : actions/setup-go@v3
25
25
with :
26
- go-version : 1.19
27
- - name : Restore Cache
28
- uses : actions/cache@v3
29
- with :
30
- path : |-
31
- ~/go/pkg/mod
32
- ~/.cache/go-build
33
- ~/Library/Caches/go-build
34
- %LocalAppData%\go-build
35
- key : ${{ matrix.os }}-go-${{ hashFiles('go.sum') }}
36
- restore-keys : |
37
- ${{ runner.os }}-go-
26
+ go-version-file : ' go.mod'
27
+ cache : true
38
28
- name : Run tests
39
29
run : make test
40
30
- name : Run build
Original file line number Diff line number Diff line change 24
24
- name : Checkout
25
25
uses : actions/checkout@v3
26
26
- name : Set up Go
27
- uses : actions/setup-go@v2
27
+ uses : actions/setup-go@v3
28
28
with :
29
- go-version : 1.19
29
+ go-version-file : ' go.mod '
30
30
- name : Install TFLint
31
31
run : curl -sL https://raw.githubusercontent.com/terraform-linters/tflint/master/install_linux.sh | bash
32
32
- name : Install plugin (Linux)
Original file line number Diff line number Diff line change 13
13
- name : Set up Go
14
14
uses : actions/setup-go@v3
15
15
with :
16
- go-version : 1.19
17
- - name : Restore Cache
18
- uses : actions/cache@v3
19
- with :
20
- path : |-
21
- ~/go/pkg/mod
22
- ~/.cache/go-build
23
- ~/Library/Caches/go-build
24
- %LocalAppData%\go-build
25
- key : ${{ runner.os }}-go-${{ hashFiles('go.sum') }}
26
- restore-keys : |
27
- ${{ runner.os }}-go-
16
+ go-version-file : ' go.mod'
17
+ cache : true
28
18
- name : go generate and diff checks
29
19
run : go generate ./... && git diff --exit-code
Original file line number Diff line number Diff line change 19
19
- name : Set up Go
20
20
uses : actions/setup-go@v3
21
21
with :
22
- go-version : 1.19
22
+ go-version-file : ' go.mod '
23
23
- name : goreleaser check
24
24
uses : goreleaser/goreleaser-action@v3
25
25
with :
Original file line number Diff line number Diff line change 13
13
submodules : true
14
14
- uses : actions/setup-go@v3
15
15
with :
16
- go-version : 1.19
16
+ go-version-file : ' go.mod '
17
17
- run : |
18
18
go get github.com/aws/aws-sdk-go
19
19
go mod tidy
Original file line number Diff line number Diff line change 18
18
- name : Set up Go
19
19
uses : actions/setup-go@v3
20
20
with :
21
- go-version : 1.19
22
- - name : Restore Cache
23
- uses : actions/cache@v3
24
- with :
25
- path : |-
26
- ~/go/pkg/mod
27
- ~/.cache/go-build
28
- ~/Library/Caches/go-build
29
- %LocalAppData%\go-build
30
- key : ${{ runner.os }}-go-${{ hashFiles('go.sum') }}
31
- restore-keys : |
32
- ${{ runner.os }}-go-
21
+ go-version-file : ' go.mod'
22
+ cache : true
33
23
- name : Run GoReleaser
34
24
uses : goreleaser/goreleaser-action@v3
35
25
with :
You can’t perform that action at this time.
0 commit comments