Skip to content

Commit

Permalink
Fix OSS postgres build (#32919)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 5e02ca165822b5cef6c014f66373c74fcf7fbec8
  • Loading branch information
sujayakar authored and Convex, Inc. committed Jan 8, 2025
1 parent af9dbbe commit 13cc636
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build_local_backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,25 @@ jobs:
build_and_test:
name: Build and Test Convex Backend
runs-on: [self-hosted, aws, x64, xlarge]

services:
# Label used to access service container
postgres:
# Docker Hub image
image: bitnami/postgresql:13
# Provide the password for postgres
env:
POSTGRESQL_PASSWORD: postgres
POSTGRESQL_MAX_CONNECTIONS: 500
POSTGRESQL_REPLICATION_USE_PASSFILE: no
# Set health checks to wait until postgres has started
options: >-
--health-cmd "pg_isready -U postgres" --health-interval 10s
--health-timeout 5s --health-retries 5 --name postgres
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432

steps:
- name: Checkout repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -64,4 +83,7 @@ jobs:
run: cargo nextest run --no-run --profile ci

- name: Run Rust tests
env:
CI_PGUSER: postgres
CI_PGPASSWORD: postgres
run: DISABLE_FUZZY_TEXT_SEARCH=true cargo nextest run --profile ci

0 comments on commit 13cc636

Please sign in to comment.