mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-02-03 16:55:05 +01:00
ci: run on ubuntu 24.04 & enable make check.
This commit is contained in:
parent
afb1831fc3
commit
1e28428574
3 changed files with 13 additions and 6 deletions
8
.github/workflows/main.yml
vendored
8
.github/workflows/main.yml
vendored
|
@ -8,13 +8,12 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
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
|
||||||
|
|
||||||
|
@ -44,7 +43,10 @@ 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
|
||||||
run: sudo aa-enforce /etc/apparmor.d/aa-notify
|
run:
|
||||||
|
if [[ ${{ matrix.os }} != ubuntu-24.04 ]]; then
|
||||||
|
sudo aa-enforce /etc/apparmor.d/aa-notify
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Show AppArmor log and rules
|
- name: Show AppArmor log and rules
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -63,6 +63,11 @@ tests:
|
||||||
- go test $(go list ./pkg/... | grep -v /pkg/paths) -v -cover -coverprofile=coverage.out
|
- go test $(go list ./pkg/... | grep -v /pkg/paths) -v -cover -coverprofile=coverage.out
|
||||||
- go tool cover -func=coverage.out
|
- go tool cover -func=coverage.out
|
||||||
|
|
||||||
|
check:
|
||||||
|
stage: lint
|
||||||
|
image: registry.gitlab.com/roddhjav/builders/archlinux
|
||||||
|
script:
|
||||||
|
- make check
|
||||||
|
|
||||||
# Package Build
|
# Package Build
|
||||||
# -------------
|
# -------------
|
||||||
|
|
|
@ -42,7 +42,7 @@ profile xarchiver @{exec_path} {
|
||||||
# For deb packages
|
# For deb packages
|
||||||
@{bin}/{,@{multiarch}-}ar rix,
|
@{bin}/{,@{multiarch}-}ar rix,
|
||||||
|
|
||||||
@{path_open} rPx -> child-open,
|
@{open_path} rPx -> child-open,
|
||||||
|
|
||||||
/etc/fstab r,
|
/etc/fstab r,
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue