forked from open-horizon-services/web-helloworld-python
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (28 loc) · 846 Bytes
/
makefile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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