Skip to content

Commit

Permalink
.github/workflows: Also add junit test reports in the main job.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivucica authored Sep 17, 2024
1 parent f27cb7d commit 3bb632a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci-bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,16 @@ jobs:
name: junit-test-logs-regular-${{ matrix.name }}
path: 'bazel-testlogs/**/test.log'

# This fails unless there's write permission in the token. Hence the attempt
# to run as triggered by these workflows in another job, which might then
# work on pull requests as well. This needs further investigation.
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
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
report_paths: 'bazel-testlogs/**/test.xml'
continue-on-error: true
bazel_build_buildbuddy:
runs-on: ubuntu-latest

Expand Down Expand Up @@ -228,3 +238,14 @@ jobs:
- name: print ldd
run: ldd bazel-bin/util_test
continue-on-error: true

# This fails unless there's write permission in the token. Hence the attempt
# to run as triggered by these workflows in another job, which might then
# work on pull requests as well. This needs further investigation.
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
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
report_paths: 'bazel-testlogs/**/test.xml'
continue-on-error: true

0 comments on commit 3bb632a

Please sign in to comment.