Skip to content

Commit

Permalink
Try setting up test reporting...
Browse files Browse the repository at this point in the history
  • Loading branch information
shartte committed Nov 8, 2023
1 parent 7d785f9 commit 38c4408
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
build:
name: Build
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -21,7 +21,7 @@ jobs:
fetch-tags: true

- name: Setup JDK
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'microsoft'
Expand All @@ -34,3 +34,10 @@ jobs:

- name: Test
run: ./gradlew --info -s check

# Always upload test results
- uses: actions/upload-artifact@v3
if: success() || failure()
with:
name: test-results
path: "**/TEST-*.xml"
20 changes: 20 additions & 0 deletions .github/workflows/test-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: 'Test Report'
on:
workflow_run:
workflows: ['pr']
types:
- completed
permissions:
contents: read
actions: read
checks: write
jobs:
report:
runs-on: ubuntu-latest
steps:
- uses: dorny/test-reporter@v1
with:
artifact: test-results
name: Tests
path: '**/*.xml'
reporter: java-junit

0 comments on commit 38c4408

Please sign in to comment.