Skip to content

Commit

Permalink
add db to loco-gen crate
Browse files Browse the repository at this point in the history
  • Loading branch information
kaplanelad committed Jan 27, 2025
1 parent b66ebc4 commit 3f1122c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/loco-gen-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,21 @@ jobs:
permissions:
contents: read

services:
postgres:
image: postgres
env:
POSTGRES_DB: postgres_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
# Set health checks to wait until postgres has started
options: --health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5

steps:
- name: Checkout the code
uses: actions/checkout@v4
Expand All @@ -71,3 +86,4 @@ jobs:
run: cargo test --all-features
env:
LOCO_DEV_MODE_PATH: ${{ github.workspace }}
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres_test

0 comments on commit 3f1122c

Please sign in to comment.