Skip to content

Commit

Permalink
Test reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
shartte committed Nov 20, 2023
1 parent 2a5629b commit e607826
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@ jobs:
CROWDIN_TOKEN: ${{ secrets.CROWDIN_TOKEN }}
continue-on-error: true
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'

# Always upload test results
- name: Merge Test Reports
if: success() || failure()
run: npx junit-report-merger junit.xml "**/TEST-*.xml"

- uses: actions/upload-artifact@v3
if: success() || failure()
with:
name: test-results
path: junit.xml

- uses: actions/upload-artifact@v3
with:
name: dist
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/test-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: 'Test Report'
on:
workflow_run:
workflows: ['Build Pull Request']
types:
- completed
permissions:
contents: read
actions: read
checks: write
jobs:
report:
runs-on: ubuntu-latest
steps:
- uses: dorny/test-reporter@afe6793191b75b608954023a46831a3fe10048d4
with:
artifact: test-results
name: Test Report
path: '**/*.xml'
reporter: java-junit
# This should not affect the result of the check created
# for the origin PR. This just affects this post-processing job itself.
continue-on-error: true

0 comments on commit e607826

Please sign in to comment.