From 7099113beb65d3c617e893b52b09cb123bd16385 Mon Sep 17 00:00:00 2001 From: Anagh Hegde Date: Mon, 2 Dec 2024 15:07:04 +0530 Subject: [PATCH] chore: add postgres db during the startup conditionally (#37605) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description This pull request proposes a change to conditionally add a PostgreSQL database during startup. ## Automation /ok-to-test tags="@tag.Sanity" ### :mag: Cypress test results > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: > Commit: fbded313eb0f1416f4bdd453c6d42db437f4eecc > Cypress dashboard. > Tags: `@tag.Sanity` > Spec: >
Thu, 28 Nov 2024 08:44:27 UTC ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No ## Summary by CodeRabbit - **New Features** - Introduced conditional PostgreSQL service for CI tests, enhancing database service management. - **Improvements** - Refined job conditions for CI tests execution, improving workflow clarity and control. - Enhanced error handling and logging for better debugging during test failures. --- .github/workflows/ci-test-limited.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci-test-limited.yml b/.github/workflows/ci-test-limited.yml index 0407cc6440da..d58b7cb1c23e 100644 --- a/.github/workflows/ci-test-limited.yml +++ b/.github/workflows/ci-test-limited.yml @@ -48,7 +48,13 @@ jobs: ports: # Opens tcp port 6379 on the host and service container - 6379:6379 + postgres: + if: github.base_ref == 'pg' || github.ref_name == 'pg' + image: postgres:14 + ports: + - 5432:5432 mongo: + if: github.base_ref == 'release' || github.ref_name == 'release' image: mongo ports: - 27017:27017