mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-12 15:26:44 +01:00
ci(github): add tests job.
This commit is contained in:
parent
061f5aa95e
commit
5603f26274
1 changed files with 16 additions and 5 deletions
19
.github/workflows/main.yml
vendored
19
.github/workflows/main.yml
vendored
|
@ -9,10 +9,10 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
os:
|
os:
|
||||||
- ubuntu-24.04
|
- ubuntu-24.04
|
||||||
- ubuntu-22.04
|
# - ubuntu-22.04
|
||||||
mode:
|
mode:
|
||||||
- default
|
- default
|
||||||
- full-system-policy
|
# - full-system-policy
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -43,10 +43,9 @@ jobs:
|
||||||
sudo systemctl status apparmor.service
|
sudo systemctl status apparmor.service
|
||||||
|
|
||||||
- name: Ensure compatibility with some AppArmor userspace tools
|
- name: Ensure compatibility with some AppArmor userspace tools
|
||||||
|
if: matrix.os != 'ubuntu-24.04'
|
||||||
run: |
|
run: |
|
||||||
if [[ ${{ matrix.os }} != ubuntu-24.04 ]]; then
|
|
||||||
sudo aa-enforce /etc/apparmor.d/aa-notify
|
sudo aa-enforce /etc/apparmor.d/aa-notify
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Show AppArmor log and rules
|
- name: Show AppArmor log and rules
|
||||||
run: |
|
run: |
|
||||||
|
@ -56,3 +55,15 @@ jobs:
|
||||||
|
|
||||||
- name: Show Number of loaded profile
|
- name: Show Number of loaded profile
|
||||||
run: sudo aa-status --profiled
|
run: sudo aa-status --profiled
|
||||||
|
|
||||||
|
- name: Install Tests dependencies
|
||||||
|
if: matrix.mode == 'default' && matrix.os == 'ubuntu-24.04'
|
||||||
|
run: |
|
||||||
|
sudo apt-get update -q
|
||||||
|
sudo apt-get install -y \
|
||||||
|
bats bats-support
|
||||||
|
|
||||||
|
- name: Run the bats integration tests
|
||||||
|
if: matrix.mode == 'default' && matrix.os == 'ubuntu-24.04'
|
||||||
|
run: |
|
||||||
|
make bats
|
||||||
|
|
Loading…
Reference in a new issue