Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use single source for go version #4794

Merged
merged 1 commit into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci-schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dockerhub-latest-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dockerhub-released-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/swr-latest-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/swr-released-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down
1 change: 1 addition & 0 deletions .go-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.21.8
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading