forked from java-native-access/jna
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish test results after PR run (java-native-access#179)
Motivation: To make it easier to understand why a build failed let us publish the rest results Modifications: Use a new workflow to be able to publish the test reports Result: Easier to understand why a PR did fail
- Loading branch information
1 parent
3b28440
commit ed893ba
Showing
2 changed files
with
60 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: PR Reports | ||
on: | ||
workflow_run: | ||
workflows: [ "Build PR" ] | ||
types: | ||
- completed | ||
jobs: | ||
tests-linux-x86_64: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download Artifacts | ||
uses: dawidd6/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
workflow: ${{ github.event.workflow_run.workflow_id }} | ||
commit: ${{ github.event.workflow_run.head_commit.id }} | ||
# File location set in ci-pr.yml and must be coordinated. | ||
name: test-results-pr-linux-x86_64 | ||
- name: Publish Test Report | ||
uses: scacap/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
report_paths: '**/target/surefire-reports/TEST-*.xml' | ||
commit: ${{ github.event.workflow_run.head_commit.id }} | ||
check_name: linux-x86_64 test results | ||
|
||
tests-windows-x86_64: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download Artifacts | ||
uses: dawidd6/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
workflow: ${{ github.event.workflow_run.workflow_id }} | ||
commit: ${{ github.event.workflow_run.head_commit.id }} | ||
# File location set in ci-pr.yml and must be coordinated. | ||
name: test-results-pr-windows-x86_64 | ||
- name: Publish Test Report | ||
uses: scacap/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
report_paths: '**/target/surefire-reports/TEST-*.xml' | ||
commit: ${{ github.event.workflow_run.head_commit.id }} | ||
check_name: windows-x86_64 test results |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters