From 20042c3dd41b95b87aa8c22a0c4f8837251779bf Mon Sep 17 00:00:00 2001 From: Jason Dellaluce Date: Tue, 13 Jun 2023 09:20:03 +0000 Subject: [PATCH] fix(ci): skip plugins and falcoctl tests for static build Signed-off-by: Jason Dellaluce --- .github/workflows/reusable_test_packages.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reusable_test_packages.yaml b/.github/workflows/reusable_test_packages.yaml index 414eb3de..e06bc904 100644 --- a/.github/workflows/reusable_test_packages.yaml +++ b/.github/workflows/reusable_test_packages.yaml @@ -60,8 +60,10 @@ jobs: run: | pushd submodules/falcosecurity-testing ./build/falco.test -falco-static=${{ inputs.static && 'true' || 'false' }} -test.timeout=90s -test.v >> ./report.txt 2>&1 || true - ./build/falcoctl.test -falco-static=${{ inputs.static && 'true' || 'false' }} -test.timeout=90s -test.v >> ./report.txt 2>&1 || true - ./build/k8saudit.test -falco-static=${{ inputs.static && 'true' || 'false' }} -test.timeout=90s -test.v >> ./report.txt 2>&1 || true + if ${{ inputs.static && 'true' || 'false' }}; then + ./build/falcoctl.test -test.timeout=90s -test.v >> ./report.txt 2>&1 || true + ./build/k8saudit.test -test.timeout=90s -test.v >> ./report.txt 2>&1 || true + fi cat ./report.txt | go-junit-report -set-exit-code > report.xml popd