From 7b1364e00bcea5df6856e4a27cdd3158e07dd3e5 Mon Sep 17 00:00:00 2001 From: Aleksei Sviridkin Date: Sat, 11 Apr 2026 14:11:40 +0300 Subject: [PATCH] build(hack): wire bats unit tests into make unit-tests target Add a bats-unit-tests Make target that runs hack/cozytest.sh against hack/check-host-runtime.bats, and make unit-tests depend on it so the existing CI step (make unit-tests in .github/workflows/pull-requests.yaml) exercises the preflight script on every PR. Without this the bats file exists in the tree but is never executed, leaving future regressions undetected. Assisted-By: Claude Signed-off-by: Aleksei Sviridkin --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 59a55bfb..aaffcc81 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: manifests assets unit-tests helm-unit-tests +.PHONY: manifests assets unit-tests helm-unit-tests bats-unit-tests include hack/common-envs.mk @@ -82,11 +82,14 @@ test: make -C packages/core/testing apply make -C packages/core/testing test -unit-tests: helm-unit-tests +unit-tests: helm-unit-tests bats-unit-tests helm-unit-tests: hack/helm-unit-tests.sh +bats-unit-tests: + hack/cozytest.sh hack/check-host-runtime.bats + prepare-env: make -C packages/core/testing apply make -C packages/core/testing prepare-cluster