Skip to content

Commit 5107391

Browse files
committed
Run just a subset of suites
1 parent 76d9211 commit 5107391

File tree

1 file changed

+0
-72
lines changed

1 file changed

+0
-72
lines changed

.github/workflows/test-management-ui-for-pr.yaml

Lines changed: 0 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -9,75 +9,3 @@ concurrency:
99
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1010
cancel-in-progress: true
1111
jobs:
12-
selenium:
13-
runs-on: ubuntu-22.04
14-
strategy:
15-
fail-fast: false
16-
matrix:
17-
erlang_version:
18-
- "26.2"
19-
browser:
20-
- chrome
21-
include:
22-
- erlang_version: "26.2"
23-
elixir_version: 1.15.7
24-
env:
25-
SELENIUM_DIR: selenium
26-
DOCKER_NETWORK: rabbitmq_net
27-
steps:
28-
- name: Checkout
29-
uses: actions/checkout@v4
30-
31-
- name: Configure OTP & Elixir
32-
uses: erlef/[email protected]
33-
with:
34-
otp-version: ${{ matrix.erlang_version }}
35-
elixir-version: ${{ matrix.elixir_version }}
36-
hexpm-mirrors: |
37-
https://builds.hex.pm
38-
https://cdn.jsdelivr.net/hex
39-
40-
- name: Authenticate To Google Cloud
41-
uses: google-github-actions/[email protected]
42-
with:
43-
credentials_json: ${{ secrets.REMOTE_CACHE_CREDENTIALS_JSON }}
44-
45-
- name: Build & Load RabbitMQ OCI
46-
run: |
47-
make package-generic-unix
48-
make docker-image
49-
50-
- name: Configure Docker Network
51-
run: |
52-
docker network create ${DOCKER_NETWORK}
53-
54-
- name: Build Test Runner Image
55-
run: |
56-
cd ${SELENIUM_DIR}
57-
docker build -t mocha-test --target test .
58-
59-
- name: Run full ui suites on a standalone rabbitmq server
60-
run: |
61-
IMAGE_TAG=$(find PACKAGES/rabbitmq-server-generic-unix-*.tar.xz | awk -F 'PACKAGES/rabbitmq-server-generic-unix-|.tar.xz' '{print $2}')
62-
RABBITMQ_DOCKER_IMAGE=pivotalrabbitmq/rabbitmq:$IMAGE_TAG \
63-
${SELENIUM_DIR}/run-suites.sh short-suite-management-ui
64-
mkdir -p /tmp/full-suite
65-
mv /tmp/selenium/* /tmp/full-suite
66-
67-
- name: Upload Test Artifacts
68-
if: always()
69-
uses: actions/[email protected]
70-
with:
71-
name: test-artifacts-${{ matrix.browser }}-${{ matrix.erlang_version }}
72-
path: |
73-
/tmp/full-suite
74-
/tmp/short-suite
75-
76-
summary-selenium:
77-
needs:
78-
- selenium
79-
runs-on: ubuntu-latest
80-
steps:
81-
- name: SUMMARY
82-
run: |
83-
echo "SUCCESS"

0 commit comments

Comments
 (0)