Skip to content

Commit 941be6d

Browse files
committed
Github tests
1 parent 2456d07 commit 941be6d

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/mvn-test.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
run-name: "Run maven tests"
2+
on: pull_request
3+
steps:
4+
- uses: actions/checkout@v4
5+
- uses: actions/setup-java@v4
6+
with:
7+
java-version: '17'
8+
distribution: 'corretto'
9+
- run: mvn --batch-mode clean test
10+
name: Run mvn test
11+
- uses: test-summary/action@v2
12+
name: Test summary
13+
with:
14+
paths: "target/surefire-reports/TEST-*.xml"

pom.xml

+9
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,13 @@
7878
</plugin>
7979
</plugins>
8080
</build>
81+
<reporting>
82+
<plugins>
83+
<plugin>
84+
<groupId>org.apache.maven.plugins</groupId>
85+
<artifactId>maven-surefire-report-plugin</artifactId>
86+
<version>3.3.1</version>
87+
</plugin>
88+
</plugins>
89+
</reporting>
8190
</project>

0 commit comments

Comments
 (0)