mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-20 09:27:47 +00:00
update(ci): run GHA regression tests on static falco builds
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@@ -24,8 +24,13 @@ jobs:
|
|||||||
test-dev-packages:
|
test-dev-packages:
|
||||||
needs: [fetch-version, build-dev-packages]
|
needs: [fetch-version, build-dev-packages]
|
||||||
uses: ./.github/workflows/reusable_test_packages.yaml
|
uses: ./.github/workflows/reusable_test_packages.yaml
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
static: ["static", ""]
|
||||||
with:
|
with:
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
|
static: ${{ matrix.static != '' && true || false }}
|
||||||
version: ${{ needs.fetch-version.outputs.version }}
|
version: ${{ needs.fetch-version.outputs.version }}
|
||||||
|
|
||||||
build-dev:
|
build-dev:
|
||||||
|
5
.github/workflows/master.yaml
vendored
5
.github/workflows/master.yaml
vendored
@@ -31,8 +31,13 @@ jobs:
|
|||||||
test-dev-packages:
|
test-dev-packages:
|
||||||
needs: [fetch-version, build-dev-packages]
|
needs: [fetch-version, build-dev-packages]
|
||||||
uses: ./.github/workflows/reusable_test_packages.yaml
|
uses: ./.github/workflows/reusable_test_packages.yaml
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
static: ["static", ""]
|
||||||
with:
|
with:
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
|
static: ${{ matrix.static != '' && true || false }}
|
||||||
version: ${{ needs.fetch-version.outputs.version }}
|
version: ${{ needs.fetch-version.outputs.version }}
|
||||||
|
|
||||||
test-dev-packages-arm64:
|
test-dev-packages-arm64:
|
||||||
|
16
.github/workflows/reusable_test_packages.yaml
vendored
16
.github/workflows/reusable_test_packages.yaml
vendored
@@ -6,6 +6,11 @@ on:
|
|||||||
description: x86_64 or aarch64
|
description: x86_64 or aarch64
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
static:
|
||||||
|
description: Falco packages use a static build
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
version:
|
version:
|
||||||
description: The Falco version to use when testing packages
|
description: The Falco version to use when testing packages
|
||||||
required: true
|
required: true
|
||||||
@@ -30,12 +35,13 @@ jobs:
|
|||||||
- name: Download binary
|
- name: Download binary
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: falco-${{ inputs.version }}-${{ inputs.arch }}.tar.gz
|
name: falco-${{ inputs.version }}${{ inputs.static && '-static' || '' }}-${{ inputs.arch }}.tar.gz
|
||||||
|
|
||||||
- name: Install Falco package
|
- name: Install Falco package
|
||||||
run: |
|
run: |
|
||||||
|
ls falco-*.tar.gz
|
||||||
tar -xvf $(ls falco-*.tar.gz)
|
tar -xvf $(ls falco-*.tar.gz)
|
||||||
cd $(ls falco-*.tar.gz | sed -e 's/\.tar\.gz$//')
|
cd falco-${{ inputs.version }}-${{ inputs.arch }}
|
||||||
sudo cp -r * /
|
sudo cp -r * /
|
||||||
|
|
||||||
- name: Install go-junit-report
|
- name: Install go-junit-report
|
||||||
@@ -53,9 +59,9 @@ jobs:
|
|||||||
- name: Run regression tests
|
- name: Run regression tests
|
||||||
run: |
|
run: |
|
||||||
pushd submodules/falcosecurity-testing
|
pushd submodules/falcosecurity-testing
|
||||||
./build/falco.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 -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 -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
|
cat ./report.txt | go-junit-report -set-exit-code > report.xml
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user