diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8570e08f305..4a2e24461ee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,8 +24,13 @@ jobs: test-dev-packages: needs: [fetch-version, build-dev-packages] uses: ./.github/workflows/reusable_test_packages.yaml + strategy: + fail-fast: false + matrix: + static: ["static", ""] with: arch: x86_64 + static: ${{ matrix.static != '' && true || false }} version: ${{ needs.fetch-version.outputs.version }} build-dev: diff --git a/.github/workflows/master.yaml b/.github/workflows/master.yaml index de7e45ac8da..2068547d268 100644 --- a/.github/workflows/master.yaml +++ b/.github/workflows/master.yaml @@ -29,11 +29,16 @@ jobs: secrets: inherit test-dev-packages: - needs: [fetch-version, build-dev-packages] - uses: ./.github/workflows/reusable_test_packages.yaml - with: - arch: x86_64 - version: ${{ needs.fetch-version.outputs.version }} + needs: [fetch-version, build-dev-packages] + uses: ./.github/workflows/reusable_test_packages.yaml + strategy: + fail-fast: false + matrix: + static: ["static", ""] + with: + arch: x86_64 + static: ${{ matrix.static != '' && true || false }} + version: ${{ needs.fetch-version.outputs.version }} test-dev-packages-arm64: needs: [fetch-version, build-dev-packages-arm64] diff --git a/.github/workflows/reusable_test_packages.yaml b/.github/workflows/reusable_test_packages.yaml index 82c88cdffb3..1387b58a8c1 100644 --- a/.github/workflows/reusable_test_packages.yaml +++ b/.github/workflows/reusable_test_packages.yaml @@ -6,6 +6,11 @@ on: description: x86_64 or aarch64 required: true type: string + static: + description: Falco packages use a static build + required: false + type: boolean + default: false version: description: The Falco version to use when testing packages required: true @@ -30,7 +35,7 @@ jobs: - name: Download binary uses: actions/download-artifact@v3 with: - name: falco-${{ inputs.version }}-${{ inputs.arch }}.tar.gz + name: falco-${{ inputs.version }}${{ inputs.static && '-static' || '' }}-${{ inputs.arch }}.tar.gz - name: Install Falco package run: | @@ -53,9 +58,9 @@ jobs: - name: Run regression tests run: | pushd submodules/falcosecurity-testing - ./build/falco.test -test.timeout=90s -test.v >> ./report.txt 2>&1 || true - ./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 + ./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 cat ./report.txt | go-junit-report -set-exit-code > report.xml popd