Skip to content

Commit

Permalink
[ci] Separated test report (#3351)
Browse files Browse the repository at this point in the history
  • Loading branch information
micsza authored Dec 4, 2023
1 parent 12318a6 commit ab7d489
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/test-report.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ab7d489

Please sign in to comment.