ci: upload test results

This commit is contained in:
Bixilon 2022-06-05 22:06:06 +02:00
parent 1c901a466e
commit 2e26e6f042
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4
3 changed files with 16 additions and 1 deletions

View File

@ -22,6 +22,9 @@ jobs:
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Publish Test Report
if: ${{ always() }}
uses: scacap/action-surefire-report@v1
- name: Upload Linux x64 build
uses: actions/upload-artifact@v2
with:
@ -39,6 +42,9 @@ jobs:
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Publish Test Report
if: ${{ always() }}
uses: scacap/action-surefire-report@v1
- name: Upload Windows x64 build
uses: actions/upload-artifact@v2
with:

View File

@ -17,4 +17,8 @@ build:
- master
- merge_requests
script:
- 'mvn $MAVEN_CLI_OPTS compile'
- 'mvn $MAVEN_CLI_OPTS verify'
artifacts:
reports:
junit:
- target/surefire-reports/TEST-*.xml

View File

@ -134,6 +134,11 @@
</excludeProperties>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.22.2</version>
</plugin>
</plugins>
</build>