From e608efe4c7672adbf6b4b54ccac57a41c3ae4b03 Mon Sep 17 00:00:00 2001 From: Piotr Chabelski Date: Wed, 11 Dec 2024 15:12:26 +0100 Subject: [PATCH] Switch test reports to OSS flow --- .github/workflows/ci.yml | 7 +++---- .github/workflows/test-report.yml | 22 ++++++++++++++++++++++ 2 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/test-report.yml 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