Skip to content

Commit

Permalink
test requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshod5 committed May 13, 2024
1 parent d9cca45 commit 2890e6b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,27 @@ on: [ push, pull_request ]
jobs:
test:
runs-on: ubuntu-latest
container:
image: myimage/django-server:base
ports:
- 8000:8000

services:
postgres:
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: admin
POSTGRES_DB: mydb
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

env:
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
POSTGRES_PASSWORD: admin
POSTGRES_USER: postgres

steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 2890e6b

Please sign in to comment.