Skip to content

Commit 2b0c895

Browse files
committed
AEA-5959 Include script in workflow step.
1 parent 5677100 commit 2b0c895

File tree

2 files changed

+10
-38
lines changed

2 files changed

+10
-38
lines changed

.github/workflows/quality-checks.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff 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

scripts/check_makefile_target.sh

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)