diff --git a/README.md b/README.md index 536c6dd..765ea3e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ [![Falco kernel tests Repository](https://github.com/falcosecurity/evolution/blob/main/repos/badges/falco-infra-blue.svg)](https://github.com/falcosecurity/evolution/blob/main/REPOSITORIES.md#infra-scope) [![Incubating](https://img.shields.io/badge/status-incubating-orange?style=for-the-badge)](https://github.com/falcosecurity/evolution/blob/main/REPOSITORIES.md#incubating) ![Architectures](https://img.shields.io/badge/ARCHS-x86__64%7Caarch64-blueviolet?style=for-the-badge) - +[![Latest release](https://img.shields.io/github/v/release/falcosecurity/kernel-testing?style=for-the-badge)](https://github.com/falcosecurity/kernel-testing/releases/latest) # Falco drivers tests diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..05362cc --- /dev/null +++ b/action.yml @@ -0,0 +1,98 @@ +name: 'kernel-testing' +description: 'Ansible playbooks to provision firecracker VMs and run Falco kernel tests.' + +inputs: + libsversion: + description: 'libs version to be tested, eg: master' + required: false + default: 'master' + libsrepo: + description: 'libs repo to be tested, eg: falcosecurity/libs' + required: false + default: 'falcosecurity/libs' + build_matrix: + description: 'Whether to generate matrixes as matrix_$architecture artifact' + required: false + default: 'false' + +outputs: + ansible_output: + description: "Uploaded ansible output artifact name" + value: ${{ steps.upload.outputs.ansible }} + matrix_output: + description: "Uploaded matrix artifact name" + value: ${{ steps.upload.outputs.matrix }} + +runs: + using: "composite" + steps: + - name: Checkout + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + with: + repository: falcosecurity/kernel-testing + ref: ${{ env.ACTION_REF }} + env: + ACTION_REF: ${{ github.action_ref }} + + - name: Store architecture variable + id: var + run: echo "architecture=$(uname -m)" >> $GITHUB_OUTPUT + + - name: Generate vars yaml + working-directory: ./ansible-playbooks + run: | + cat > vars.yml <> $GITHUB_OUTPUT + echo "matrix=${{ github.action_path }}/matrix_gen/matrix.md" >> $GITHUB_OUTPUT + + - name: Cleanup + if: always() + working-directory: ./ansible-playbooks + run: | + ansible-playbook clean-up.yml --extra-vars "@vars.yml" || :