-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Steve Coffman <[email protected]>
- Loading branch information
1 parent
033d818
commit 1cf53c2
Showing
2 changed files
with
36 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,24 @@ | ||
name: test report | ||
on: | ||
workflow_run: | ||
workflows: [build] | ||
types: [completed] | ||
|
||
permissions: | ||
checks: write | ||
|
||
jobs: | ||
checks: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download Test Report | ||
uses: dawidd6/action-download-artifact@v6 | ||
with: | ||
name: junit-test-results | ||
workflow: ${{ github.event.workflow.id }} | ||
run_id: ${{ github.event.workflow_run.id }} | ||
- name: Publish Test Report | ||
uses: mikepenz/action-junit-report@v3 | ||
with: | ||
commit: ${{github.event.workflow_run.head_sha}} | ||
report_paths: '*.xml' |
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 |
---|---|---|
|
@@ -46,6 +46,13 @@ jobs: | |
cd _examples | ||
go mod download | ||
gotestsum --junitfile ../go_examples_report.xml --format-icons=hivis --format=pkgname-and-test-fails -- -race ./... -trimpath | ||
- name: Upload Test Report | ||
uses: actions/[email protected] | ||
if: always() # always run even if the previous step fails | ||
with: | ||
name: junit-test-results | ||
path: '*.xml' | ||
retention-days: 1 | ||
- name: action-junit-report | ||
shell: bash | ||
if: success() || failure() # always run even if the previous step fails | ||
|
@@ -63,7 +70,7 @@ jobs: | |
if: success() || failure() # always run even if the previous step fails | ||
run: | | ||
echo "### robherley/go-test-action! :rocket:" >> $GITHUB_STEP_SUMMARY | ||
# - name: Annotate tests | ||
# - name: Annotate tests does not work on pull-requests for security | ||
# if: success() || failure() # always run even if the previous step fails | ||
# uses: guyarb/[email protected] | ||
# with: | ||
|
@@ -76,6 +83,9 @@ jobs: | |
# Will always exit(0) on successful test file parse. | ||
# Optional. No default | ||
fromJSONFile: go_test.json | ||
omit: | | ||
untested | ||
successful | ||
- name: test-summary/action announcement | ||
shell: bash | ||
if: success() || failure() # always run even if the previous step fails | ||
|
@@ -85,7 +95,7 @@ jobs: | |
uses: test-summary/[email protected] | ||
if: success() || failure() # always run even if the previous step fails | ||
with: | ||
show: "fail, skip" | ||
paths: | | ||
report.xml | ||
go_examples_report.xml | ||
show: "fail, skip" |