Skip to content

Commit 0e743a3

Browse files
authored
easier go-config (#433)
1 parent 43f0063 commit 0e743a3

File tree

1 file changed

+6
-17
lines changed

1 file changed

+6
-17
lines changed

.github/workflows/build.yaml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,15 @@ jobs:
1818
with:
1919
fetch-depth: 0
2020

21-
- uses: actions/cache@v3
22-
with:
23-
path: ~/go/pkg/mod
24-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
25-
restore-keys: |
26-
${{ runner.os }}-go-
27-
2821
- name: golangci-lint
2922
uses: reviewdog/action-golangci-lint@v2
3023
with:
3124
github_token: ${{ secrets.GITHUB_TOKEN }}
3225

3326
- uses: actions/setup-go@v3
3427
with:
35-
go-version: '^1.18'
28+
cache: true
29+
go-version-file: 'go.mod'
3630

3731
- name: Test and build image
3832
run: |
@@ -60,14 +54,8 @@ jobs:
6054

6155
- uses: actions/setup-go@v3
6256
with:
63-
go-version: '^1.18'
64-
65-
- uses: actions/cache@v3
66-
with:
67-
path: ~/go/pkg/mod
68-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
69-
restore-keys: |
70-
${{ runner.os }}-go-
57+
cache: true
58+
go-version-file: 'go.mod'
7159

7260
- name: Create k8s Kind Cluster
7361
uses: helm/[email protected]
@@ -100,7 +88,8 @@ jobs:
10088

10189
- uses: actions/setup-go@v3
10290
with:
103-
go-version: '^1.18'
91+
cache: true
92+
go-version-file: 'go.mod'
10493

10594
- name: bundle
10695
run: |

0 commit comments

Comments
 (0)