Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 5 additions & 10 deletions .etc_rabbitmq/rabbitmq.conf
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
loopback_users = none

log.default.level = info
log.file = false
log.console = true

#listeners.ssl.default = 5671
#ssl_options.cacertfile = /etc/rabbitmq/rootCA.pem
#ssl_options.certfile = /etc/rabbitmq/localhost.pem
#ssl_options.keyfile = /etc/rabbitmq/localhost-key.pem
loopback_users = none
listeners.ssl.default = 5671
ssl_options.cacertfile = /etc/rabbitmq/rootCA.pem
ssl_options.certfile = /etc/rabbitmq/localhost.pem
ssl_options.keyfile = /etc/rabbitmq/localhost-key.pem
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
workflow_dispatch:

jobs:
# Test against RabbitMQ with TLS support
test:
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -51,6 +52,29 @@ jobs:
AMQPS_URL: amqps://localhost?insecure
- run: npm run lint

# Test against LavinMQ
test-lavinmq:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x, 22.x, 23.x, 24.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v4
- name: Start LavinMQ
uses: cloudamqp/lavinmq-action@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
- run: npm test

# Browser tests against RabbitMQ via WebSocket
test-browser:
runs-on: ubuntu-latest
env:
Expand All @@ -75,3 +99,25 @@ jobs:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
- run: npx playwright install --with-deps chromium
- run: npm run test-browser -- run --browser.headless

# Browser tests against LavinMQ via WebSocket
test-browser-lavinmq:
runs-on: ubuntu-latest
env:
NODE_VERSION: 22.x

steps:
- uses: actions/checkout@v4
- name: Start LavinMQ
uses: cloudamqp/lavinmq-action@v1
with:
websocket: true
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- run: npm install
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
- run: npx playwright install --with-deps chromium
- run: npm run test-browser -- run --browser.headless
Loading