From fb1f3d7e7988168fd76e190159cab6c28d4f0769 Mon Sep 17 00:00:00 2001 From: Nicholas Tindle Date: Thu, 13 Feb 2025 06:56:50 -0600 Subject: [PATCH] ci(test): add rabbitmq instance to ci --- .github/workflows/platform-backend-ci.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/platform-backend-ci.yml b/.github/workflows/platform-backend-ci.yml index cdab6ed300..61b738ff55 100644 --- a/.github/workflows/platform-backend-ci.yml +++ b/.github/workflows/platform-backend-ci.yml @@ -42,6 +42,19 @@ jobs: REDIS_PASSWORD: testpassword ports: - 6379:6379 + rabbitmq: + image: rabbitmq:3.12-management + ports: + - 5672:5672 + - 15672:15672 + env: + # We know these are here, don't report this as a security vulnerability + # This is used as the default credential for the entire system's RabbitMQ instance + # If you want to replace this, you can do so by making our entire system generate + # new credentials for each local user and update the environment variables in + # the backend service, docker composes, and examples + RABBITMQ_DEFAULT_USER: "rabbitmq_user_default" + RABBITMQ_DEFAULT_PASS: "k0VMxyIJF9S35f3x2uaw5IWAl6Y536O7" steps: - name: Checkout repository @@ -129,9 +142,9 @@ jobs: SUPABASE_URL: ${{ steps.supabase.outputs.API_URL }} SUPABASE_SERVICE_ROLE_KEY: ${{ steps.supabase.outputs.SERVICE_ROLE_KEY }} SUPABASE_JWT_SECRET: ${{ steps.supabase.outputs.JWT_SECRET }} - REDIS_HOST: 'localhost' - REDIS_PORT: '6379' - REDIS_PASSWORD: 'testpassword' + REDIS_HOST: "localhost" + REDIS_PORT: "6379" + REDIS_PASSWORD: "testpassword" env: CI: true