Skip to content

Commit aaca111

Browse files
authored
Update maven.yml
1 parent 8db9c89 commit aaca111

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

.github/workflows/maven.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,26 @@ on:
1616

1717
jobs:
1818
build:
19-
2019
runs-on: ubuntu-latest
21-
2220
steps:
23-
- uses: actions/checkout@v4
24-
- name: Set up JDK 17
25-
uses: actions/setup-java@v4
26-
with:
27-
java-version: '17'
28-
distribution: 'temurin'
29-
cache: maven
30-
- name: Build with Maven
31-
run: mvn -B package --file pom.xml
21+
- uses: actions/checkout@v4
22+
23+
- name: Set up JDK 17
24+
uses: actions/setup-java@v4
25+
with:
26+
java-version: '17'
27+
distribution: 'temurin'
28+
cache: maven
29+
30+
- name: Build with Maven
31+
working-directory: OtmTodoApp-master/OtmTodoApp-master
32+
run: mvn -B clean test jacoco:report package
33+
34+
# Optional: dependency graph (use directory, not working-directory)
35+
- name: Update dependency graph
36+
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
37+
with:
38+
directory: OtmTodoApp-master/OtmTodoApp-master
3239

3340
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
3441
- name: Update dependency graph

0 commit comments

Comments
 (0)