Skip to content

Commit d058c27

Browse files
committed
Generate execution logs
1 parent 04e2e87 commit d058c27

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,19 @@ jobs:
4747
4848
- name: Test
4949
run: |
50-
"${GITHUB_WORKSPACE}/bin/bazel" test //...
50+
"${GITHUB_WORKSPACE}/bin/bazel" test //... \
51+
--execution_log_json_file=test_log_execution.json \
52+
--experimental_workspace_rules_log_file=test_log_workspace.pb
5153
5254
- name: Build
5355
run: |
5456
"${GITHUB_WORKSPACE}/bin/bazel" build //...
57+
58+
- name: Bundle Bazel Logs
59+
run: |
60+
tar czf test_logs_${{ matrix.os }}.tgz test_log_execution.json test_log_workspace.pb
61+
62+
- uses: actions/upload-artifact@v1
63+
with:
64+
name: bazel-logs-${{ matrix.os }}
65+
path: test_logs_${{ matrix.os }}.tgz

0 commit comments

Comments
 (0)