build: add test results as comment

This commit is contained in:
Citymonstret 2022-05-27 14:15:41 +02:00 committed by Jason
parent ebb25e9d41
commit 236cd34a32

View file

@ -28,6 +28,11 @@ jobs:
java-version: 17 java-version: 17
- name: Build - name: Build
run: ./gradlew build run: ./gradlew build
- name : Test Summary
uses : EnricoMi/publish-unit-test-result-action@v1
with :
files : "**/build/test-results/test/TEST-*.xml"
if : always()
- name: Determine Status - name: Determine Status
run: | run: |
if [ "$(./gradlew properties | awk '/^version:/ { print $2; }' | grep '\-SNAPSHOT')" ]; then if [ "$(./gradlew properties | awk '/^version:/ { print $2; }' | grep '\-SNAPSHOT')" ]; then