diff --git a/.github/workflows/ci-test-custom-script.yml b/.github/workflows/ci-test-custom-script.yml index ef8aea989e..2062ecb29c 100644 --- a/.github/workflows/ci-test-custom-script.yml +++ b/.github/workflows/ci-test-custom-script.yml @@ -197,6 +197,22 @@ jobs: uses: actions/setup-node@v4 with: node-version-file: app/client/package.json + + - name: Check DB URL + if: steps.run_result.outputs.run_result != 'success' + run: | + db_url=$(grep -oP 'APPSMITH_DB_URL=\K[^ ]+' cicontainerlocal/stacks/configuration/docker.env || echo "") + if [[ -z "$db_url" ]]; then + echo "::error::APPSMITH_DB_URL not found in the environment file" + exit 1 + fi + if [[ $db_url == "postgresql"* ]]; then + echo "Database type: Postgres. Ensure PostgreSQL-specific configurations are in place." + elif [[ $db_url == "mongo"* ]]; then + echo "Database type: MongoDB. Verify MongoDB connection settings if issues arise." + else + echo "::warning::Unknown database type. Please verify the database configuration." + fi # actions/setup-node@v4 doesn’t work properly with Yarn 3 # when the project lives in a subdirectory: https://github.com/actions/setup-node/issues/488 diff --git a/.github/workflows/server-build.yml b/.github/workflows/server-build.yml index 0a74e1eb5a..cf17da05bb 100644 --- a/.github/workflows/server-build.yml +++ b/.github/workflows/server-build.yml @@ -72,6 +72,9 @@ jobs: - name: Figure out the PR number run: echo ${{ inputs.pr }} + + - name: Default database URL + run: echo "Is this a PG build? ${{ inputs.is-pg-build }}" - name: Print the Github event run: echo ${{ github.event_name }}