File tree Expand file tree Collapse file tree 2 files changed +10
-38
lines changed
Expand file tree Collapse file tree 2 files changed +10
-38
lines changed Original file line number Diff line number Diff line change @@ -193,6 +193,16 @@ jobs:
193193 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
194194 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
195195
196+ - name : Run build if Makefile target exists
197+ run : |
198+ if grep -qE "^build:" "Makefile"; then
199+ echo "build target exists in Makefile"
200+ make build
201+ else
202+ echo "build target not found in Makefile"
203+ exit 1
204+ fi
205+
196206 # CloudFormation validation (runs only if templates exist, ~3-5 minutes)
197207 cloudformation-validation :
198208 runs-on : ubuntu-22.04
@@ -407,11 +417,3 @@ jobs:
407417 with :
408418 name : cfn_guard_output
409419 path : cfn_guard_output
410-
411- - name : Build project
412- run : |
413- if scripts/check_makefile_target.sh build; then
414- make build
415- else
416- echo "No build target found in Makefile, skipping build step"
417- fi
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments