Skip to content

updated makefile.yml and check-files.yml #14

updated makefile.yml and check-files.yml

updated makefile.yml and check-files.yml #14

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: Install dependencies
run: make
- 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
echo "All Targets found in the Makefile!"