Skip to content

Commit

Permalink
🚀 Add Postgres to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ImNotAVirus committed Aug 21, 2024
1 parent b1936a4 commit cfff336
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,20 @@ jobs:
app: ${{fromJson(needs.directories.outputs.apps)}}
env:
MIX_ENV: test
# services:
# db:
# image: postgres:11
# ports: ['5432:5432']
# env:
# POSTGRES_PASSWORD: postgres
# options: >-
# --health-cmd pg_isready
# --health-interval 10s
# --health-timeout 5s
# --health-retries 5
services:
db:
image: postgres:latest
ports: ['5432:5432']
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_HOST_AUTH_METHOD: 'trust'
POSTGRES_DB: elvengard_test
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- name: Set up Elixir
Expand Down

0 comments on commit cfff336

Please sign in to comment.