Skip to content

Commit 43961c4

Browse files
committed
Run postgres service on other CI tests too.
1 parent 7bca5c6 commit 43961c4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/all-test.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,19 @@ jobs:
9797
name: pkg/${{matrix.package}}/
9898
runs-on: ubuntu-latest
9999
needs: define_pkg_list
100+
services:
101+
postgres:
102+
image: postgres
103+
env:
104+
POSTGRES_PASSWORD: postgres
105+
# Set health checks to wait until postgres has started
106+
options: >-
107+
--health-cmd pg_isready
108+
--health-interval 10s
109+
--health-timeout 5s
110+
--health-retries 5
111+
ports:
112+
- 5432:5432
100113
strategy:
101114
fail-fast: false
102115
matrix:
@@ -137,3 +150,5 @@ jobs:
137150
fi
138151
dart test --run-skipped
139152
working-directory: pkg/${{matrix.package}}
153+
env:
154+
PUB_POSTGRES_URL: postgresql://postgres:postgres@localhost:5432/postgres?sslmode=disable

0 commit comments

Comments
 (0)