use single source for go version

Signed-off-by: Michael Grosser <michael@grosser.it>
This commit is contained in:
Michael Grosser 2024-04-02 16:57:52 -07:00
parent bc60437977
commit a528975927
No known key found for this signature in database
GPG Key ID: B19DB1587D698ED7
10 changed files with 14 additions and 13 deletions

View File

@ -40,7 +40,7 @@ jobs:
- name: install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.8
go-version-file: go.mod
- name: setup e2e test environment
uses: nick-fields/retry@v2.9.0
with:

View File

@ -22,7 +22,7 @@ jobs:
- name: install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.8
go-version-file: go.mod
- name: verify license
run: hack/verify-license.sh
- name: vendor
@ -47,7 +47,7 @@ jobs:
- name: install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.8
go-version-file: ${{ env.GOPATH }}/src/github.com/karmada-io/karmada/go.mod
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
@ -79,7 +79,7 @@ jobs:
- name: install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.8
go-version-file: go.mod
- name: compile
run: make all
test:
@ -94,7 +94,7 @@ jobs:
- name: install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.8
go-version-file: go.mod
- name: make test
run: make test
- name: Upload coverage to Codecov
@ -145,7 +145,7 @@ jobs:
- name: install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.8
go-version-file: go.mod
- name: setup e2e test environment
run: |
export CLUSTER_VERSION=kindest/node:${{ matrix.k8s }}

View File

@ -33,7 +33,7 @@ jobs:
- name: install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.8
go-version-file: go.mod
- uses: helm/kind-action@v1.9.0
with:
version: "v0.20.0"

View File

@ -38,7 +38,7 @@ jobs:
- name: install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.8
go-version-file: go.mod
- name: Install Cosign
uses: sigstore/cosign-installer@v3.4.0
with:

View File

@ -34,7 +34,7 @@ jobs:
- name: install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.8
go-version-file: go.mod
- name: Install Cosign
uses: sigstore/cosign-installer@v3.4.0
with:

View File

@ -23,7 +23,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21.8
go-version-file: go.mod
- name: Making and packaging
env:
GOOS: ${{ matrix.os }}

View File

@ -22,7 +22,7 @@ jobs:
- name: install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.8
go-version-file: go.mod
- name: build images
env:
REGISTRY: ${{secrets.SWR_REGISTRY}}

View File

@ -19,7 +19,7 @@ jobs:
- name: install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.8
go-version-file: go.mod
- name: build images
env:
REGISTRY: ${{secrets.SWR_REGISTRY}}

1
.go-version Normal file
View File

@ -0,0 +1 @@
1.21.8

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/karmada-io/karmada
go 1.21
go 1.21.8
require (
github.com/adhocore/gronx v1.6.3