Skip to content

Commit

Permalink
rabbitmq as a service
Browse files Browse the repository at this point in the history
  • Loading branch information
kafkiansky committed Jan 22, 2025
1 parent a84e387 commit 3e3a846
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ on:
jobs:
test:
runs-on: ubuntu-latest
services:
rabbitmq:
image: rabbitmq:alpine
ports:
- "5672:5672"
env:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
options: --health-cmd "rabbitmqctl node_health_check" --health-interval 10s --health-timeout 5s --health-retries 5
strategy:
matrix:
php: ["8.3"]
Expand All @@ -25,7 +34,4 @@ jobs:
dependency-versions: ${{ matrix.dependencies }}
env:
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH || '{}' }}
- uses: namoshek/rabbitmq-github-action@v1
with:
ports: "5673:5672"
- run: THESIS_AMQP_DSN="amqp://guest:guest@127.0.0.1:5673/?tcp_nodelay=true" composer test -- --colors=always
- run: THESIS_AMQP_DSN="amqp://guest:guest@127.0.0.1:5672/?tcp_nodelay=true" composer test -- --colors=always

0 comments on commit 3e3a846

Please sign in to comment.