Skip to content

Commit 47b2133

Browse files
authored
chore: Add more build artifacts for debugging (#749)
* chore: Add more build artifacts for debugging * Not always * npm only on failure
1 parent d11d914 commit 47b2133

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,14 @@ jobs:
6363
# TODO: Run integration tests on MacOS / Windows probably using temporalite
6464
RUN_INTEGRATION_TESTS: ${{ startsWith(matrix.os, 'ubuntu') }}
6565

66+
- uses: actions/upload-artifact@v3
67+
if: ${{ failure() }}
68+
with:
69+
name: npm-logs
70+
path: |
71+
~/.npm/_logs/
72+
C:\npm\cache\_logs\
73+
6674
# Do docs stuff (only on one host)
6775
- name: Build docs
6876
if: ${{ matrix.docsTarget }}

.github/workflows/stress.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,10 @@ jobs:
5454
- run: mkdir -p $TEMPORAL_TESTING_LOG_DIR/tails
5555
- run: mkdir -p $TEMPORAL_TESTING_MEM_LOG_DIR
5656
- run: 'timeout ${{ inputs.test-timeout-minutes }}m npm run ${{ inputs.test-type }}'
57-
# Tail the logs and upload as artifact on cancel or failure
5857
- run: for f in $TEMPORAL_TESTING_LOG_DIR/*.log; do tail -20000 $f > $TEMPORAL_TESTING_LOG_DIR/tails/$(basename $f); done
59-
if: ${{ cancelled() || failure() }}
58+
if: ${{ always() }}
6059
- uses: actions/upload-artifact@v3
61-
if: ${{ cancelled() || failure() }}
60+
if: ${{ always() }}
6261
with:
6362
name: worker-logs
6463
path: ${{ env.TEMPORAL_TESTING_LOG_DIR }}/tails

0 commit comments

Comments
 (0)