-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12213 from rabbitmq/mergify/bp/v4.0.x/pr-12198
Move selenium to root (backport #12198)
- Loading branch information
Showing
266 changed files
with
360 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
name: Test Management UI with Selenium for PRs | ||
on: | ||
pull_request: | ||
paths: | ||
- 'deps/**' | ||
- 'selenium/**' | ||
- .github/workflows/test-management-ui-for-pr.yaml | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
selenium: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
erlang_version: | ||
- "26.2" | ||
browser: | ||
- chrome | ||
include: | ||
- erlang_version: "26.2" | ||
elixir_version: 1.15.7 | ||
env: | ||
SELENIUM_DIR: selenium | ||
DOCKER_NETWORK: rabbitmq_net | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Configure OTP & Elixir | ||
uses: erlef/[email protected] | ||
with: | ||
otp-version: ${{ matrix.erlang_version }} | ||
elixir-version: ${{ matrix.elixir_version }} | ||
hexpm-mirrors: | | ||
https://builds.hex.pm | ||
https://cdn.jsdelivr.net/hex | ||
- name: Authenticate To Google Cloud | ||
uses: google-github-actions/[email protected] | ||
with: | ||
credentials_json: ${{ secrets.REMOTE_CACHE_CREDENTIALS_JSON }} | ||
|
||
- name: Configure Bazel | ||
run: | | ||
if [ -n "${{ secrets.REMOTE_CACHE_BUCKET_NAME }}" ]; then | ||
cat << EOF >> user.bazelrc | ||
build --remote_cache=https://storage.googleapis.com/${{ secrets.REMOTE_CACHE_BUCKET_NAME }} | ||
build --google_default_credentials | ||
build --remote_download_toplevel | ||
EOF | ||
fi | ||
cat << EOF >> user.bazelrc | ||
build --color=yes | ||
EOF | ||
- name: Build & Load RabbitMQ OCI | ||
run: | | ||
bazelisk run packaging/docker-image:rabbitmq-amd64 | ||
- name: Configure Docker Network | ||
run: | | ||
docker network create ${DOCKER_NETWORK} | ||
- name: Build Test Runner Image | ||
run: | | ||
cd ${SELENIUM_DIR} | ||
docker build -t mocha-test --target test . | ||
- name: Run full ui suites on a standalone rabbitmq server | ||
run: | | ||
RABBITMQ_DOCKER_IMAGE=bazel/packaging/docker-image:rabbitmq-amd64 \ | ||
${SELENIUM_DIR}/run-suites.sh | ||
mkdir -p /tmp/full-suite | ||
mv /tmp/selenium/* /tmp/full-suite | ||
mkdir -p /tmp/full-suite/logs | ||
mv ${SELENIUM_DIR}/logs/* /tmp/full-suite/logs | ||
mkdir -p /tmp/full-suite/screens | ||
mv ${SELENIUM_DIR}/screens/* /tmp/full-suite/screens | ||
- name: Upload Test Artifacts | ||
if: always() | ||
uses: actions/[email protected] | ||
with: | ||
name: test-artifacts-${{ matrix.browser }}-${{ matrix.erlang_version }} | ||
path: | | ||
/tmp/full-suite | ||
summary-selenium: | ||
needs: | ||
- selenium | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: SUMMARY | ||
run: | | ||
echo "SUCCESS" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
deps/rabbitmq_management/selenium/test/authnz-msg-protocols/env.local
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
deps/rabbitmq_management/selenium/test/multi-oauth/env.local.devkeycloak
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
deps/rabbitmq_management/selenium/test/multi-oauth/env.local.prodkeycloak
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
node_modules | ||
package-lock.json | ||
screens/*/* | ||
logs | ||
suites/logs/* | ||
suites/screens/* | ||
test/oauth/*/h2/*.trace.db | ||
test/oauth/*/h2/*.lock.db | ||
*/target/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.