File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 63
63
# TODO: Run integration tests on MacOS / Windows probably using temporalite
64
64
RUN_INTEGRATION_TESTS : ${{ startsWith(matrix.os, 'ubuntu') }}
65
65
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
+
66
74
# Do docs stuff (only on one host)
67
75
- name : Build docs
68
76
if : ${{ matrix.docsTarget }}
Original file line number Diff line number Diff line change @@ -54,11 +54,10 @@ jobs:
54
54
- run : mkdir -p $TEMPORAL_TESTING_LOG_DIR/tails
55
55
- run : mkdir -p $TEMPORAL_TESTING_MEM_LOG_DIR
56
56
- run : ' timeout ${{ inputs.test-timeout-minutes }}m npm run ${{ inputs.test-type }}'
57
- # Tail the logs and upload as artifact on cancel or failure
58
57
- 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 () }}
60
59
- uses : actions/upload-artifact@v3
61
- if : ${{ cancelled() || failure () }}
60
+ if : ${{ always () }}
62
61
with :
63
62
name : worker-logs
64
63
path : ${{ env.TEMPORAL_TESTING_LOG_DIR }}/tails
You can’t perform that action at this time.
0 commit comments