From ab7d489d700c5e7f20b7d86677bba35e73e51d73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Szafraniuk?= Date: Mon, 4 Dec 2023 09:08:52 +0100 Subject: [PATCH] [ci] Separated test report (#3351) --- .github/workflows/ci.yml | 5 +++++ .github/workflows/test-report.yml | 22 ++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/test-report.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 123eccea0c..7695b6b8ad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -98,6 +98,11 @@ jobs: - name: Test if: matrix.target-platform == 'JS' && matrix.scala-version == '3' run: sbt $SBT_JAVA_OPTS catsJS3/test circeJsonJS3/test clientCoreJS3/test clientTestsJS3/test coreJS3/test jsoniterScalaJS3/test openapiDocsJS3/test redocJS3/test serverCoreJS3/test sttpClientJS3/test testingJS3/test testsJS3/test uPickleJsonJS3/test zioJsonJS3/test + - uses: actions/upload-artifact@v3 # upload test results + if: success() || failure() # run this step even if previous step failed + with: + name: 'tests-results-${{ matrix.scala-version }}-${{ matrix.target-platform }}-${{ matrix.java }}' + path: '**/test-reports/TEST*.xml' - name: Prepare release notes uses: release-drafter/release-drafter@v5 with: diff --git a/.github/workflows/test-report.yml b/.github/workflows/test-report.yml new file mode 100644 index 0000000000..690c32e438 --- /dev/null +++ b/.github/workflows/test-report.yml @@ -0,0 +1,22 @@ +name: 'Test Report' +on: + workflow_run: + workflows: ['CI'] + types: + - completed + +permissions: + contents: read + actions: read + checks: write + +jobs: + report: + runs-on: ubuntu-latest + steps: + - uses: dorny/test-reporter@v1 + with: + artifact: '/tests-results-(.*)/' + name: 'Test report for $1' + path: '**/test-reports/TEST*.xml' + reporter: java-junit