diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ef9588e..4da7433 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,13 +28,12 @@ jobs: uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b - name: Build with Gradle run: ./gradlew build - - name: Test Report - uses: dorny/test-reporter@v1 + - name: Upload test report + uses: actions/upload-artifact@v4 if: success() || failure() with: - name: JUnit Tests ( ${{ matrix.OS }} ) + name: test-results-${{ matrix.OS }} path: "**/test-results/**/*.xml" - reporter: java-junit - name: Show version run: ./gradlew :printVersion - name: Publish snapshot diff --git a/.github/workflows/test-report.yml b/.github/workflows/test-report.yml new file mode 100644 index 0000000..68115c5 --- /dev/null +++ b/.github/workflows/test-report.yml @@ -0,0 +1,22 @@ +name: 'Test Report' +on: + workflow_run: + workflows: ['CI'] + types: + - completed +permissions: + statuses: write + checks: write + contents: write + pull-requests: write + actions: write +jobs: + report: + runs-on: ubuntu-latest + steps: + - uses: dorny/test-reporter@v1 + with: + artifact: /test-results-(.*)/ + name: 'JUnit Tests ($1)' + path: '*.xml' + reporter: java-junit \ No newline at end of file