-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.github/workflows: Add junit test reports as a separate job.
- Loading branch information
Showing
2 changed files
with
51 additions
and
6 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,45 @@ | ||
name: Bazel CI test report | ||
on: | ||
workflow_run: | ||
workflows: [ C/C++ and Bazel CI ] | ||
types: [ completed ] | ||
|
||
permissions: | ||
checks: write | ||
|
||
jobs: | ||
checks: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- name: minimal-regular | ||
place: regular | ||
short_name: minimal | ||
- name: util-regular | ||
place: regular | ||
short_name: util | ||
- name: minimal-buildbuddy | ||
place: buildbuddy | ||
short_name: minimal | ||
- name: util-buildbuddy | ||
place: buildbuddy | ||
short_name: util | ||
|
||
steps: | ||
- name: Download Test Report | ||
uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
name: junit-test-results-${{ matrix.place }}-${{ matrix.short_name }} | ||
workflow: ${{ github.event.workflow.id }} | ||
run_id: ${{ github.event.workflow_run.id }} | ||
- name: Publish Test Report | ||
uses: mikepenz/action-junit-report@v4 | ||
# if we integrate into main bit instead of having a separate workflow: | ||
# if: success() || failure() # always run even if the previous step fails | ||
with: | ||
commit: ${{github.event.workflow_run.head_sha}} # remove if we don't use separate workflow | ||
# some_file.zip/minimal_test/test.xml | ||
report_paths: '**/test.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