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

chore: refactored go version in workflows #162

Merged
merged 5 commits into from
Apr 15, 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
4 changes: 2 additions & 2 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
- name: Cache Go dependencies
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version-file: "go.mod" # This uses the Go version defined in the mod file, in contrast to setting a defined version.

- name: Execute unit test
run: make test-ci
Expand All @@ -100,7 +100,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version-file: "go.mod" # This uses the Go version defined in the mod file, in contrast to setting a defined version.
cache: true

- name: Install Kyma CLI & setup k3d cluster using Kyma CLI
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version-file: "go.mod" # This uses the Go version defined in the mod file, in contrast to setting a defined version.
cache: true

- name: Install Kyma CLI & setup k3d cluster using Kyma CLI
Expand All @@ -31,7 +31,7 @@ jobs:
bin/k3d kubeconfig get kyma > $PWD/k3d_kubeconfig
KUBECONFIG=$PWD/k3d_kubeconfig TEST_EVENTING_AUTH_TARGET_KUBECONFIG_PATH=$PWD/k3d_kubeconfig make test-ci
env:
USE_EXISTING_CLUSTER: "true"
USE_EXISTING_CLUSTER: "true"
TEST_EVENTING_AUTH_TARGET_KUBECONFIG_PATH: k3d_kubeconfig
TEST_EVENTING_AUTH_IAS_URL: ${{ secrets.TEST_EVENTING_AUTH_IAS_URL }}
TEST_EVENTING_AUTH_IAS_USER: ${{ secrets.TEST_EVENTING_AUTH_IAS_USER }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.21 # This can be a specific version. E.g. 1.19 or 1.21.x
go-version-file: "go.mod" # This uses the Go version defined in the mod file, in contrast to setting a defined version.

- name: Checkout code
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Cache Go dependencies
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version-file: "go.mod" # This uses the Go version defined in the mod file, in contrast to setting a defined version.

- name: Execute unit test
run: make test-ci
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ repoclean: manifests-eam
git diff --exit-code

.PHONY: test-ci
test-ci: repoclean envtest ## Run tests.
test-ci: envtest ## Run tests.
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test ./... -coverprofile cover.out

##@ Build
Expand Down