From e563b227af6d97dc8b4f2ce3c9b63ce66a108072 Mon Sep 17 00:00:00 2001 From: Eric Costa Date: Wed, 29 Jan 2025 08:48:48 -0300 Subject: [PATCH] ci: Add RabbitMQ service configuration to GitHub Actions workflow --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bf23f82d..c58a8ef3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -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