Skip to content

Commit 4b8a6c6

Browse files
committed
ci: update actions/setup-go to v4
This brings automatic build caches.
1 parent c17f6d9 commit 4b8a6c6

File tree

2 files changed

+3
-19
lines changed

2 files changed

+3
-19
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
uses: actions/checkout@v3
2929

3030
- name: Setup Go ${{ env.GO_VERSION }}
31-
uses: actions/setup-go@v3
31+
uses: actions/setup-go@v4
3232
with:
3333
go-version: ${{ env.GO_VERSION }}
3434

.github/workflows/test.yml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,13 @@ jobs:
1919

2020
steps:
2121
- name: Setup Go ${{ env.GO_VERSION }}
22-
uses: actions/setup-go@v3
22+
uses: actions/setup-go@v4
2323
with:
2424
go-version: ${{ env.GO_VERSION }}
2525

2626
- name: Checkout code
2727
uses: actions/checkout@v3
2828

29-
- name: Cache Go modules
30-
uses: actions/cache@v3.3.1
31-
with:
32-
path: ~/go/pkg/mod
33-
key: ${{ runner.os }}-${{ env.GO_VERSION }}-go-${{ hashFiles('**/go.sum') }}
34-
restore-keys: |
35-
${{ runner.os }}-${{ env.GO_VERSION }}-go-
36-
3729
- name: Run tests
3830
run: make test
3931

@@ -47,21 +39,13 @@ jobs:
4739

4840
steps:
4941
- name: Setup Go ${{ env.GO_VERSION }}
50-
uses: actions/setup-go@v3
42+
uses: actions/setup-go@v4
5143
with:
5244
go-version: ${{ env.GO_VERSION }}
5345

5446
- name: Checkout code
5547
uses: actions/checkout@v3
5648

57-
- name: Cache Go modules
58-
uses: actions/cache@v3.3.1
59-
with:
60-
path: ~/go/pkg/mod
61-
key: ${{ runner.os }}-${{ env.GO_VERSION }}-go-${{ hashFiles('**/go.sum') }}
62-
restore-keys: |
63-
${{ runner.os }}-${{ env.GO_VERSION }}-go-
64-
6549
- name: Run linter
6650
uses: golangci/golangci-lint-action@v3
6751
with:

0 commit comments

Comments
 (0)