From 4d20dd65f217e05dedcac087676e9b50c870f392 Mon Sep 17 00:00:00 2001 From: tueem Date: Fri, 15 Nov 2024 11:46:58 +0100 Subject: [PATCH] upload test results instead of non working publishing --- .gitea/workflows/gradle-test.yaml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/gradle-test.yaml b/.gitea/workflows/gradle-test.yaml index 2c4c1c7..62fe064 100644 --- a/.gitea/workflows/gradle-test.yaml +++ b/.gitea/workflows/gradle-test.yaml @@ -38,10 +38,16 @@ jobs: DISCORD_TEST_TOKEN: ${{ secrets.DISCORD_TOKEN }} run: chmod +x gradlew; ./gradlew test - - name: Publish Test Results + - name: Move Test Results + if: always() + run: | + mkdir test-results/; + [ -d lib/build/test-results/test/ ] && mv lib/build/test-results/test/*.xml test-results/; + [ -d wrapper/javacord/build/test-results/test/ ] && mv wrapper/javacord/build/test-results/test/*.xml test-results/; + + - name: Upload Test Result + uses: christopherhx/gitea-upload-artifact@v4 if: always() - uses: dorny/test-reporter@v1 with: - name: Test Results - path: 'lib/build/test-results/test/*.xml,wrapper/javacord/build/test-results/test/*.xml' - reporter: java-junit \ No newline at end of file + name: test-results + path: test-results/ \ No newline at end of file