feat: use go-version-file: go.mod for go version detecting (#2694)
Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
parent
e177ac5fd1
commit
db4dcafa82
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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: |
|
||||
|
|
|
|||
|
|
@ -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: |
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue