File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 24
24
- 5478:5432
25
25
# Set health checks to wait until postgres has started
26
26
options : >-
27
- --health-cmd pg_isready -U postgres -h localhost
27
+ --health-cmd " pg_isready -U postgres -h localhost"
28
28
--health-interval 5s
29
29
--health-timeout 5s
30
30
--health-retries 10
53
53
SHELL : /bin/bash
54
54
55
55
- name : run tests
56
- run : pg_prove tests/test.sql
56
+ run : pg_prove migrations/ tests/test.sql
57
57
env :
58
58
PGHOST : localhost
59
59
PGPORT : 5478
74
74
PGPASSWORD : ${{ env.POSTGRES_PASSWORD }}
75
75
76
76
- name : run tests
77
- run : pg_prove tests/test.sql
77
+ run : pg_prove migrations/ tests/test.sql
78
78
env :
79
79
PGHOST : localhost
80
80
PGPORT : 5478
87
87
- uses : actions/checkout@v3
88
88
- name : verify schema.sql is committed
89
89
run : |
90
- docker compose up db dbmate --abort-on-container-exit
90
+ docker compose -f migrations/docker-compose.yaml up db dbmate --abort-on-container-exit
91
91
if ! git diff --ignore-space-at-eol --exit-code --quiet migrations/schema.sql; then
92
92
echo "Detected uncommitted changes after build. See status below:"
93
93
git diff
You can’t perform that action at this time.
0 commit comments