Skip to content

Commit dea0285

Browse files
committed
wire in v2 CI
1 parent a2f2986 commit dea0285

3 files changed

Lines changed: 24 additions & 1 deletion

File tree

.github/workflows/ci-docs-only.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ jobs:
3737
steps:
3838
- run: 'echo "No build required"'
3939

40+
v2-test:
41+
name: v2-test
42+
runs-on: ubuntu-latest
43+
steps:
44+
- run: 'echo "No build required"'
45+
4046
lint:
4147
name: lint
4248
runs-on: ubuntu-latest

.github/workflows/ci.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,21 @@ jobs:
6363
go-version: v1.26.2
6464
- run: make test
6565

66+
# The v2 slim-core lives in its own go.work workspace (v2/sdk + v2/konnector)
67+
# which the root `make test` does not descend into. lint/verify already cover
68+
# v2 via GOMODS; this job adds its build, vet, unit, and envtest e2e suites.
69+
v2-test:
70+
name: v2-test
71+
runs-on: ubuntu-latest
72+
steps:
73+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
74+
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
75+
with:
76+
go-version: v1.26.2
77+
- run: cd v2 && make build vet test
78+
# test-e2e downloads envtest binaries on demand via setup-envtest.
79+
- run: cd v2 && make test-e2e
80+
6681
lint:
6782
name: lint
6883
runs-on: ubuntu-latest

v2/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ codegen:
5757
ENVTEST_K8S_VERSION ?= 1.34.1
5858
SETUP_ENVTEST ?= go run sigs.k8s.io/controller-runtime/tools/setup-envtest@release-0.21
5959

60+
# Unit tests only. The envtest-based e2e (which needs KUBEBUILDER_ASSETS) is a
61+
# separate target so `make test` runs with no external setup.
6062
.PHONY: test
6163
test:
62-
cd konnector && go test ./...
64+
cd konnector && go test $$(go list ./... | grep -v /test/e2e)
6365
cd sdk && go test ./...
6466

6567
# Run the envtest-based e2e (two in-process API servers + the engine).

0 commit comments

Comments
 (0)