Skip to content

Commit

Permalink
use single source for go version
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Grosser <michael@grosser.it>
  • Loading branch information
grosser committed Apr 6, 2024
1 parent a0c0a98 commit 5bdc159
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 24 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ jobs:
# We need to guess version via git tags.
fetch-depth: 0
- name: install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.21.8
go-version-file: .go-version
- name: setup e2e test environment
uses: nick-fields/retry@v2.9.0
with:
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
- name: checkout code
uses: actions/checkout@v3
- name: install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.21.8
go-version-file: .go-version
- name: verify license
run: hack/verify-license.sh
- name: vendor
Expand All @@ -41,9 +41,9 @@ jobs:
with:
path: ${{ env.GOPATH }}/src/github.com/karmada-io/karmada
- name: install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.21.8
go-version-file: ${{ env.GOPATH }}/src/github.com/karmada-io/karmada/.go-version
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
Expand Down Expand Up @@ -73,9 +73,9 @@ jobs:
# We need to guess version via git tags.
fetch-depth: 0
- name: install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.21.8
go-version-file: .go-version
- name: compile
run: make all
test:
Expand All @@ -88,9 +88,9 @@ jobs:
- name: checkout code
uses: actions/checkout@v3
- name: install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.21.8
go-version-file: .go-version
- name: make test
run: make test
- name: Upload coverage to Codecov
Expand Down Expand Up @@ -139,9 +139,9 @@ jobs:
# We need to guess version via git tags.
fetch-depth: 0
- name: install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.21.8
go-version-file: .go-version
- name: setup e2e test environment
run: |
export CLUSTER_VERSION=kindest/node:${{ matrix.k8s }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
# We need to guess version via git tags.
fetch-depth: 0
- name: install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.21.8
go-version-file: .go-version
- uses: helm/kind-action@v1.9.0
with:
version: "v0.20.0"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dockerhub-latest-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ jobs:
# for `git describe --tags` in Makefile.
fetch-depth: 0
- name: install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.21.8
go-version-file: .go-version
- name: Install Cosign
uses: sigstore/cosign-installer@v3.4.0
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dockerhub-released-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ jobs:
# for `git describe --tags` in Makefile.
fetch-depth: 0
- name: install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.21.8
go-version-file: .go-version
- name: Install Cosign
uses: sigstore/cosign-installer@v3.4.0
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.21.8
go-version-file: .go-version
- name: Making and packaging
env:
GOOS: ${{ matrix.os }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/swr-latest-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
# for `git describe --tags` in Makefile.
fetch-depth: 0
- name: install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.21.8
go-version-file: .go-version
- name: build images
env:
REGISTRY: ${{secrets.SWR_REGISTRY}}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/swr-released-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
with:
fetch-depth: 0
- name: install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.21.8
go-version-file: .go-version
- 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

0 comments on commit 5bdc159

Please sign in to comment.