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