File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -61,12 +61,16 @@ jobs:
61
61
IMAGE_TAG=$(find PACKAGES/rabbitmq-server-generic-unix-*.tar.xz | awk -F 'PACKAGES/rabbitmq-server-generic-unix-|.tar.xz' '{print $2}')
62
62
RABBITMQ_DOCKER_IMAGE=pivotalrabbitmq/rabbitmq:$IMAGE_TAG \
63
63
${SELENIUM_DIR}/run-suites.sh short-suite-management-ui
64
+
65
+ - name : Prepare logs for upload
66
+ if : ${{ failure() && steps.tests.outcome == 'failed' }}
67
+ run : |
64
68
mkdir -p /tmp/short-suite
65
69
mv /tmp/selenium/* /tmp/short-suite
66
70
67
71
- name : Upload Test Artifacts
68
- if : always()
69
- uses : actions/upload-artifact@v4.3.2
72
+ if : ${{ failure() && steps.tests.outcome == 'failed' }}
73
+ uses : actions/upload-artifact@v4
70
74
with :
71
75
name : test-artifacts-${{ matrix.browser }}-${{ matrix.erlang_version }}
72
76
path : |
Original file line number Diff line number Diff line change @@ -69,18 +69,22 @@ jobs:
69
69
docker build -t mocha-test --target test .
70
70
71
71
- name : Run full UI suite on a 3-node rabbitmq cluster
72
+ id : tests
72
73
run : |
73
74
IMAGE_TAG=$(find PACKAGES/rabbitmq-server-generic-unix-*.tar.xz | awk -F 'PACKAGES/rabbitmq-server-generic-unix-|.tar.xz' '{print $2}')
74
75
RABBITMQ_DOCKER_IMAGE=pivotalrabbitmq/rabbitmq:$IMAGE_TAG \
75
76
${SELENIUM_DIR}/run-suites.sh full-suite-management-ui
77
+
78
+ - name : Prepare logs for upload
79
+ if : ${{ failure() && steps.tests.outcome == 'failed' }}
80
+ run : |
76
81
mkdir -p /tmp/full-suite
77
- mv /tmp/selenium/* /tmp/full-suite
82
+ mv -v /tmp/selenium/* /tmp/full-suite
78
83
79
84
- name : Upload Test Artifacts
80
- if : always()
85
+ if : ${{ failure() && steps.tests.outcome == 'failed' }}
81
86
82
87
with :
83
88
name : test-artifacts-${{ matrix.browser }}-${{ matrix.erlang_version }}
84
89
path : |
85
90
/tmp/full-suite
86
- /tmp/short-suite
You can’t perform that action at this time.
0 commit comments