Skip to content

Commit 20c38b8

Browse files
committed
fix(ci): missing postgres service
1 parent 56d51ef commit 20c38b8

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,14 @@ jobs:
3838
DATABASE_URL: 'postgres://postgres:postgres@localhost:${{ job.services.postgres.ports[5432] }}/postgres'
3939
build:
4040
runs-on: ubuntu-latest
41-
postgres:
42-
image: postgres:12.3-alpine
43-
ports:
44-
- 5432:5432
45-
env:
46-
POSTGRES_PASSWORD: postgres
47-
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
41+
services:
42+
postgres:
43+
image: postgres:12.3-alpine
44+
ports:
45+
- 5432:5432
46+
env:
47+
POSTGRES_PASSWORD: postgres
48+
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
4849
if: github.ref == 'refs/heads/master'
4950
needs: test
5051
env:

0 commit comments

Comments
 (0)