Skip to content

Commit fdea7e1

Browse files
committed
ci cd
1 parent bba6e43 commit fdea7e1

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,17 @@ jobs:
3131
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
3232
restore-keys: ${{ runner.os }}-maven-
3333

34-
- name: Make root mvnw executable
35-
run: chmod +x ./mvnw || true
36-
3734
- name: Build & test service
3835
working-directory: ${{ matrix.service }}
3936
run: |
4037
echo "Building service: ${{ matrix.service }}"
41-
# Prefer root wrapper (standard for monorepos)
42-
../mvnw -B -ntp clean verify
38+
# Use the module mvnw if present, otherwise fall back to system mvn
39+
if [ -f ./mvnw ]; then
40+
chmod +x ./mvnw || true
41+
./mvnw -B -ntp clean verify
42+
else
43+
mvn -B -ntp clean verify
44+
fi
4345
4446
- name: Archive test reports
4547
if: always()

0 commit comments

Comments
 (0)