Skip to content

Commit

Permalink
ci: Make Bazel log available as artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Apr 20, 2023
1 parent 0554df8 commit 591495b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/run-all-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,17 @@ jobs:
- name: Test
run: bazelisk test ${{env.BUILD_BUDDY_CONFIG}} --java_runtime_version=local_jdk_${{ matrix.jdk }} --disk_cache=${{ matrix.cache }} ${{ matrix.bazel_args }} --test_tag_filters="-no-${{ matrix.arch }}-jdk${{ matrix.jdk }},-no-jdk${{ matrix.jdk }}" //...

- name: Copy Bazel log
if: always()
shell: bash
run: cp "$(readlink bazel-out)"/../../../command.log command.log

- name: Upload test logs
if: always()
uses: actions/upload-artifact@v3
with:
name: testlogs-${{ matrix.arch }}-${{ matrix.jdk }}
# https://github.com/actions/upload-artifact/issues/92#issuecomment-711107236
path: bazel-testlogs*/**/test.log
path: |
bazel-testlogs*/**/test.log
command.log

0 comments on commit 591495b

Please sign in to comment.