From d18b5162b6c66fbd9d8abec8548dc514b5c19011 Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Fri, 31 May 2024 16:22:38 +0200 Subject: [PATCH] chore(ci): enable dummy tests. Signed-off-by: Federico Di Pierro --- .github/workflows/ci.yaml | 1 + action.yml | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 92da132..92a2628 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -45,5 +45,6 @@ jobs: test-falco: 'true' test-falcoctl: 'true' test-k8saudit: 'true' + test-dummy: 'true' show-all: 'true' sudo: '' diff --git a/action.yml b/action.yml index 78635a0..bfc8ef2 100644 --- a/action.yml +++ b/action.yml @@ -14,6 +14,10 @@ inputs: description: 'Whether to run k8saudit tests. Default disabled.' required: false default: 'false' + test-dummy: + description: 'Whether to run dummy plugin tests. Default disabled.' + required: false + default: 'false' test-drivers: description: 'Whether to run drivers tests. Requires kernel headers to be installed. Default disabled.' required: false @@ -94,6 +98,9 @@ runs: if ${{ inputs.test-k8saudit == 'true' }}; then ./build/k8saudit.test -test.timeout=180s -test.v >> ./report.txt 2>&1 || true fi + if ${{ inputs.test-dummy == 'true' }}; then + ./build/dummy.test -test.timeout=180s -test.v >> ./report.txt 2>&1 || true + fi if ${{ inputs.test-drivers == 'true' }}; then ${{ inputs.sudo }} ./build/falco-driver-loader.test -test.timeout=180s -test.v >> ./report.txt 2>&1 || true fi