Enable test annotations in github actions
This should hopefully provide better context about test results for PRs
and such in the GitHub Checks API.
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index d6338a6..0173281 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -44,7 +44,7 @@
- name: Build with Maven (Linux)
if: runner.os == 'Linux'
- run: ./mvnw -V -B -e -DtrimStackTrace=false verify --global-toolchains .github/workflows/maven-toolchains.xml
+ run: ./mvnw -V -B -e -DtrimStackTrace=false -Dmaven.test.failure.ignore=true verify --global-toolchains .github/workflows/maven-toolchains.xml
- name: Inspect environment (Windows)
if: runner.os == 'Windows'
@@ -52,4 +52,9 @@
- name: Build with Maven (Windows)
if: runner.os == 'Windows'
- run: ./mvnw -V -B -e -DtrimStackTrace=false verify --global-toolchains ".github\workflows\maven-toolchains.xml"
+ run: ./mvnw -V -B -e -DtrimStackTrace=false -Dmaven.test.failure.ignore=true verify --global-toolchains ".github\workflows\maven-toolchains.xml"
+
+ - name: Publish Test Results
+ uses: scacap/action-surefire-report@v1
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}