Skip to content

Commit f1dd998

Browse files
committed
chore: update Go setup in workflows to use go.mod and disable caching
1 parent 2afb767 commit f1dd998

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/pull_request.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
uses: actions/setup-go@v5
3333
with:
3434
go-version: ${{ matrix.go-version }} # The Go version to download (if necessary) and use.
35+
go-version-file: go.mod
36+
cache: false
3537

3638
# Install all the dependencies
3739
- name: Install dependencies
@@ -72,6 +74,8 @@ jobs:
7274
uses: actions/setup-go@v5
7375
with:
7476
go-version: ${{ matrix.go-version }} # The Go version to download (if necessary) and use.
77+
go-version-file: go.mod
78+
cache: false
7579

7680
- name: Run Unit tests
7781
run: go test ./... -test.v

.github/workflows/release.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
uses: actions/setup-go@v5
3030
with:
3131
go-version: ${{ matrix.go-version }} # The Go version to download (if necessary) and use.
32+
go-version-file: go.mod
33+
cache: false
3234

3335
- name: Run Unit tests
3436
run: go test ./... -test.v
@@ -106,6 +108,8 @@ jobs:
106108
uses: actions/setup-go@v5
107109
with:
108110
go-version: ${{ matrix.go-version }} # The Go version to download (if necessary) and use.
111+
go-version-file: go.mod
112+
cache: false
109113

110114
# Install all the dependencies
111115
- name: Install dependencies

0 commit comments

Comments
 (0)