ci: update workflows to use go.mod instead of specifying go version (#4286)

Signed-off-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
Rui Chen
2024-08-02 22:12:28 -04:00
committed by GitHub
parent 5213243bbb
commit ff6ee25d23

View File

@@ -17,7 +17,7 @@ jobs:
- name: Set up Go 1.x - name: Set up Go 1.x
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: '1.20' go-version-file: go.mod
check-latest: true check-latest: true
cache: true cache: true
id: go id: go
@@ -53,7 +53,7 @@ jobs:
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
# use 1.20 to guarantee Go 1.20 compatibility # use 1.20 to guarantee Go 1.20 compatibility
go-version: '1.20' go-version-file: go.mod
check-latest: true check-latest: true
cache: true cache: true