Skip to content

Commit

Permalink
go-version-file
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 3, 2024
1 parent dbc1896 commit e20e21a
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 13 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci-schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +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-file: .go-version
- name: setup e2e test environment
uses: nick-fields/retry@v2.9.0
with:
Expand Down
20 changes: 14 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +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-file: .go-version
- name: verify license
run: hack/verify-license.sh
- name: vendor
Expand All @@ -39,7 +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-file: .go-version
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
Expand Down Expand Up @@ -69,7 +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-file: .go-version
- name: compile
run: make all
test:
Expand All @@ -82,7 +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-file: .go-version
- name: make test
run: make test
- name: Upload coverage to Codecov
Expand Down Expand Up @@ -131,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: 3 additions & 1 deletion .github/workflows/cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +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-file: .go-version
- uses: helm/kind-action@v1.9.0
with:
version: "v0.20.0"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/dockerhub-latest-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +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-file: .go-version
- name: Install Cosign
uses: sigstore/cosign-installer@v3.4.0
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/dockerhub-released-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +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-file: .go-version
- name: Install Cosign
uses: sigstore/cosign-installer@v3.4.0
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +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-file: .go-version
- name: Making and packaging
env:
GOOS: ${{ matrix.os }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/swr-latest-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +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-file: .go-version
- name: build images
env:
REGISTRY: ${{secrets.SWR_REGISTRY}}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/swr-released-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ jobs:
with:
fetch-depth: 0
- name: install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version-file: .go-version
- name: build images
env:
REGISTRY: ${{secrets.SWR_REGISTRY}}
Expand Down

0 comments on commit e20e21a

Please sign in to comment.