From d058c274ac3538bf45808b75146c58a9f87d7bc6 Mon Sep 17 00:00:00 2001 From: Andreas Herrmann Date: Wed, 29 Apr 2020 22:53:43 +0200 Subject: [PATCH] Generate execution logs --- .github/workflows/ci.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d98373d..7a939ca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,8 +47,19 @@ jobs: - name: Test run: | - "${GITHUB_WORKSPACE}/bin/bazel" test //... + "${GITHUB_WORKSPACE}/bin/bazel" test //... \ + --execution_log_json_file=test_log_execution.json \ + --experimental_workspace_rules_log_file=test_log_workspace.pb - name: Build run: | "${GITHUB_WORKSPACE}/bin/bazel" build //... + + - name: Bundle Bazel Logs + run: | + tar czf test_logs_${{ matrix.os }}.tgz test_log_execution.json test_log_workspace.pb + + - uses: actions/upload-artifact@v1 + with: + name: bazel-logs-${{ matrix.os }} + path: test_logs_${{ matrix.os }}.tgz