Merge pull request #13425 from rabbitmq/fix-selenium-log-collection
Fix log collection in Selenium workflows
This commit is contained in:
commit
ad0c209478
|
@ -61,12 +61,16 @@ jobs:
|
||||||
IMAGE_TAG=$(find PACKAGES/rabbitmq-server-generic-unix-*.tar.xz | awk -F 'PACKAGES/rabbitmq-server-generic-unix-|.tar.xz' '{print $2}')
|
IMAGE_TAG=$(find PACKAGES/rabbitmq-server-generic-unix-*.tar.xz | awk -F 'PACKAGES/rabbitmq-server-generic-unix-|.tar.xz' '{print $2}')
|
||||||
RABBITMQ_DOCKER_IMAGE=pivotalrabbitmq/rabbitmq:$IMAGE_TAG \
|
RABBITMQ_DOCKER_IMAGE=pivotalrabbitmq/rabbitmq:$IMAGE_TAG \
|
||||||
${SELENIUM_DIR}/run-suites.sh short-suite-management-ui
|
${SELENIUM_DIR}/run-suites.sh short-suite-management-ui
|
||||||
|
|
||||||
|
- name: Prepare logs for upload
|
||||||
|
if: ${{ failure() && steps.tests.outcome == 'failed' }}
|
||||||
|
run: |
|
||||||
mkdir -p /tmp/short-suite
|
mkdir -p /tmp/short-suite
|
||||||
mv /tmp/selenium/* /tmp/short-suite
|
mv /tmp/selenium/* /tmp/short-suite
|
||||||
|
|
||||||
- name: Upload Test Artifacts
|
- name: Upload Test Artifacts
|
||||||
if: always()
|
if: ${{ failure() && steps.tests.outcome == 'failed' }}
|
||||||
uses: actions/upload-artifact@v4.3.2
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: test-artifacts-${{ matrix.browser }}-${{ matrix.erlang_version }}
|
name: test-artifacts-${{ matrix.browser }}-${{ matrix.erlang_version }}
|
||||||
path: |
|
path: |
|
||||||
|
|
|
@ -69,18 +69,22 @@ jobs:
|
||||||
docker build -t mocha-test --target test .
|
docker build -t mocha-test --target test .
|
||||||
|
|
||||||
- name: Run full UI suite on a 3-node rabbitmq cluster
|
- name: Run full UI suite on a 3-node rabbitmq cluster
|
||||||
|
id: tests
|
||||||
run: |
|
run: |
|
||||||
IMAGE_TAG=$(find PACKAGES/rabbitmq-server-generic-unix-*.tar.xz | awk -F 'PACKAGES/rabbitmq-server-generic-unix-|.tar.xz' '{print $2}')
|
IMAGE_TAG=$(find PACKAGES/rabbitmq-server-generic-unix-*.tar.xz | awk -F 'PACKAGES/rabbitmq-server-generic-unix-|.tar.xz' '{print $2}')
|
||||||
RABBITMQ_DOCKER_IMAGE=pivotalrabbitmq/rabbitmq:$IMAGE_TAG \
|
RABBITMQ_DOCKER_IMAGE=pivotalrabbitmq/rabbitmq:$IMAGE_TAG \
|
||||||
${SELENIUM_DIR}/run-suites.sh full-suite-management-ui
|
${SELENIUM_DIR}/run-suites.sh full-suite-management-ui
|
||||||
|
|
||||||
|
- name: Prepare logs for upload
|
||||||
|
if: ${{ failure() && steps.tests.outcome == 'failed' }}
|
||||||
|
run: |
|
||||||
mkdir -p /tmp/full-suite
|
mkdir -p /tmp/full-suite
|
||||||
mv /tmp/selenium/* /tmp/full-suite
|
mv -v /tmp/selenium/* /tmp/full-suite
|
||||||
|
|
||||||
- name: Upload Test Artifacts
|
- name: Upload Test Artifacts
|
||||||
if: always()
|
if: ${{ failure() && steps.tests.outcome == 'failed' }}
|
||||||
uses: actions/upload-artifact@v4.3.2
|
uses: actions/upload-artifact@v4.3.2
|
||||||
with:
|
with:
|
||||||
name: test-artifacts-${{ matrix.browser }}-${{ matrix.erlang_version }}
|
name: test-artifacts-${{ matrix.browser }}-${{ matrix.erlang_version }}
|
||||||
path: |
|
path: |
|
||||||
/tmp/full-suite
|
/tmp/full-suite
|
||||||
/tmp/short-suite
|
|
||||||
|
|
Loading…
Reference in New Issue