File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515
1616 - name : Build Docker image
1717 run : |
18- docker build -t fireform:test .
18+ docker build -t fireform:test -f docker/prod/Dockerfile .
Original file line number Diff line number Diff line change 44 push :
55 branches : [main]
66 pull_request :
7- branches : [main]
7+ branches : [main,development ]
88
99jobs :
1010 test :
1111 runs-on : ubuntu-latest
1212
13+ services :
14+ postgres :
15+ image : postgres:16
16+ env :
17+ POSTGRES_USER : fireform
18+ POSTGRES_PASSWORD : fireform
19+ POSTGRES_DB : fireform
20+ ports :
21+ - 5432:5432
22+ options : >-
23+ --health-cmd "pg_isready -U fireform"
24+ --health-interval 10s
25+ --health-timeout 5s
26+ --health-retries 5
27+
1328 steps :
1429 - uses : actions/checkout@v4
1530
3348 - name : Check for un-migrated model changes
3449 env :
3550 PYTHONPATH : .
51+ DATABASE_URL : postgresql://fireform:fireform@localhost:5432/fireform
3652 run : |
53+ python -m alembic upgrade head
3754 python -m alembic check
You can’t perform that action at this time.
0 commit comments