From 0fd9c33f1b834060adc6f91ba3a2db9e0d370f8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Ho=C3=9F?= Date: Fri, 10 Nov 2023 19:21:43 +0100 Subject: [PATCH] only test if mod.rs exists MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sebastian Hoß --- .github/workflows/verify.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index b8a96b70d..fa3c1d9a2 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -21,8 +21,10 @@ jobs: - name: Check changed CRDs run: | for module in $(git diff --name-only origin/main -- ./kube-custom-resources-rs/src | grep --invert-match lib.rs | xargs --no-run-if-empty -I{} dirname {} | sort --unique | xargs --no-run-if-empty -I{} basename {}); do - echo "testing ${module}" - cargo check --package kube-custom-resources-rs --features "${module}" --locked + if [ -f "./kube-custom-resources-rs/src/${module}/mod.rs" ]; then + echo "testing ${module}" + cargo check --package kube-custom-resources-rs --features "${module}" --locked + fi done env: RUSTFLAGS: "-A warnings"