Skip to content

Commit 5e4caac

Browse files
committed
Fix Maven steps to run inside submodule
1 parent 0f954af commit 5e4caac

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,17 @@ jobs:
3939
restore-keys: ${{ runner.os }}-m2-
4040

4141
- name: Run unit tests
42-
run: ./app/urlaubsverwaltung/mvnw -B -DskipITs test
42+
working-directory: app/urlaubsverwaltung
43+
run: ./mvnw -B -DskipITs test
4344

4445
- name: Verify Docker and Compose
4546
run: bash ./scripts/verify.sh
4647

4748
- name: Extract project version
4849
id: version
50+
working-directory: app/urlaubsverwaltung
4951
run: |
50-
VERSION=$(./app/urlaubsverwaltung/mvnw -q help:evaluate -Dexpression=project.version -DforceStdout)
52+
VERSION=$(./mvnw -q help:evaluate -Dexpression=project.version -DforceStdout)
5153
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
5254
if [[ "$VERSION" == *-SNAPSHOT ]]; then
5355
echo "sanitized=${VERSION%-SNAPSHOT}" >> "$GITHUB_OUTPUT"
@@ -107,4 +109,4 @@ jobs:
107109
uses: actions/upload-artifact@v4
108110
with:
109111
name: sbom
110-
path: sbom.spdx.json
112+
path: sbom.spdx.json

0 commit comments

Comments
 (0)