Skip to content

Commit 595efc3

Browse files
committed
Debug logs
1 parent 10aaf25 commit 595efc3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/workflow.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -199,3 +199,18 @@ jobs:
199199
# NOTE keep in sync with tests/RunTests.hs
200200
bazel run @stackage-pinning-test-unpinned//:pin
201201
bazel build @stackage-pinning-test//:hspec
202+
203+
- name: Collect logs
204+
if: always()
205+
shell: bash
206+
run: |
207+
base=$( bazel info output_base )
208+
cd "$base"
209+
find -maxdepth 1 -name "java*.log.*" -print0 | xargs -0r tar --force-local -caf "$GITHUB_WORKSPACE/logs.tgz"
210+
211+
- name: Upload logs
212+
if: always()
213+
uses: actions/upload-artifact@v3
214+
with:
215+
name: Logs ${{ matrix.node-version }}
216+
path: logs.tgz

0 commit comments

Comments
 (0)