feat: use go-version-file: go.mod for go version detecting (#2694)

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero 2023-09-04 21:42:33 -05:00 committed by GitHub
parent e177ac5fd1
commit db4dcafa82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 11 deletions

View File

@ -10,9 +10,6 @@ on:
schedule:
- cron: '0 4 * * *'
env:
GO_VERSION: '1.20'
jobs:
test:
name: Test
@ -27,7 +24,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
- name: Build manager console assets
run: |-
@ -68,7 +65,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
- name: Setup QEMU
uses: docker/setup-qemu-action@v2

View File

@ -11,7 +11,6 @@ on:
- cron: '0 4 * * *'
env:
GO_VERSION: '1.20'
KIND_VERSION: v0.12.0
CONTAINERD_VERSION: v1.5.2
KIND_CONFIG_PATH: test/testdata/kind/config.yaml
@ -54,7 +53,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
- name: Get dependencies
run: |

View File

@ -11,7 +11,6 @@ on:
- cron: '0 4 * * *'
env:
GO_VERSION: '1.20'
KIND_VERSION: v0.12.0
CONTAINERD_VERSION: v1.5.2
KIND_CONFIG_PATH: test/testdata/kind/config.yaml
@ -69,7 +68,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
- name: Get dependencies
run: |

View File

@ -20,7 +20,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version-file: go.mod
cache: false
- name: Golangci lint

View File

@ -19,7 +19,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version-file: go.mod
- name: Check GoReleaser config
uses: goreleaser/goreleaser-action@v4