Skip to content

GitHub actions

GitHub actions #1

Workflow file for this run

name: Makefile CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: configure
run: ./configure
- name: Install dependencies
run: make
- name: Run check
run: make check
- name: Run distcheck
run: make distcheck
- name: Check Makefile targets
run: |
REQUIRED_TARGETS=("build" "test" "run" "stop" "agent-run" "agent-stop" "publish-service" "publish-pattern" "push" "check-syft" "sbom-policy-gen" "publish-service-policy" "publish-deployment-policy")
for TARGET in "${REQUIRED_TARGETS[@]}"; do
if ! grep -qE "^$TARGET:" Makefile; then
echo "Target '$TARGET' not found in Makefile!"
exit 1
fi
done