Skip to content

Commit

Permalink
ci: Add RabbitMQ service configuration to GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ericosta-dev committed Jan 29, 2025
1 parent 7e4c630 commit e563b22
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ env:
POSTGRES_HOST: postgres
# The default PostgreSQL port
POSTGRES_PORT: 5432
# RabbitMQ settings
RABBITMQ_HOST: rabbitmq
RABBITMQ_PORT: 5672
RABBITMQ_USER: guest
RABBITMQ_PASSWORD: guest
jobs:
# Label of the container job
container-job:
Expand All @@ -40,6 +45,22 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5
# RabbitMQ service container
rabbitmq:
image: rabbitmq:3-management
env:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
ports:
- 5672:5672
- 15672:15672
options: >-
--health-cmd "rabbitmqctl node_health_check"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
# Downloads a copy of the code in your repository before running CI tests
- name: Check out repository code
Expand Down

0 comments on commit e563b22

Please sign in to comment.