8000 chore: fix migration test · asisstan/postgres@e0e1547 · GitHub
[go: up one dir, main page]

Skip to content

Commit e0e1547

Browse files
committed
chore: fix migration test
1 parent 92e749e commit e0e1547

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- 5478:5432
2525
# Set health checks to wait until postgres has started
2626
options: >-
27-
--health-cmd pg_isready -U postgres -h localhost
27+
--health-cmd "pg_isready -U postgres -h localhost"
2828
--health-interval 5s
2929
--health-timeout 5s
3030
--health-retries 10
@@ -53,7 +53,7 @@ jobs:
5353
SHELL: /bin/bash
5454

5555
- name: run tests
56-
run: pg_prove tests/test.sql
56+
run: pg_prove migrations/tests/test.sql
5757
env:
5858
PGHOST: localhost
5959
PGPORT: 5478
@@ -74,7 +74,7 @@ jobs:
7474
PGPASSWORD: ${{ env.POSTGRES_PASSWORD }}
7575

7676
- name: run tests
77-
run: pg_prove tests/test.sql
77+
run: pg_prove migrations/tests/test.sql
7878
env:
7979
PGHOST: localhost
8080
PGPORT: 5478
@@ -87,7 +87,7 @@ jobs:
8787
- uses: actions/checkout@v3
8888
- name: verify schema.sql is committed
8989
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
9191
if ! git diff --ignore-space-at-eol --exit-code --quiet migrations/schema.sql; then
9292
echo "Detected uncommitted changes after build. See status below:"
9393
git diff

0 commit comments

Comments
 (0)
0