Skip to content

Commit 11eb97a

Browse files
committed
Introduce check job for make test
1 parent 6e0973c commit 11eb97a

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

.github/workflows/test.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v5
16+
17+
- name: Set up Go
18+
uses: actions/setup-go@v6
19+
20+
- name: Run tests
21+
run: make test

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ vet: ## Run go vet against code.
127127

128128
.PHONY: test
129129
test: manifests generate fmt vet envtest ## Run tests.
130-
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test $$(go list ./... | grep -v /e2e) -coverprofile cover.out
130+
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path --use-deprecated-gcs=false)" go test $$(go list ./... | grep -v /e2e) -coverprofile cover.out
131131

132132
# Utilize Kind or modify the e2e tests to load the image locally, enabling compatibility with other vendors.
133133
.PHONY: test-e2e # Run the e2e tests against a Kind k8s instance that is spun up.

0 commit comments

Comments
 (0)