Skip to content

Commit 4c96d8c

Browse files
committed
Fixed integration tests?
1 parent 244464a commit 4c96d8c

File tree

1 file changed

+32
-2
lines changed

1 file changed

+32
-2
lines changed

.github/workflows/test-changed-data-connect.yml

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@ env:
3030
jobs:
3131
test-chrome:
3232
name: Test Data Connect on Chrome and Node If Changed
33+
services:
34+
postgres:
35+
image: postgres
36+
env:
37+
POSTGRES_PASSWORD: postgres
38+
options: >-
39+
--health-cmd pg_isready
40+
--health-interval 10s
41+
--health-timeout 5s
42+
--health-retries 5
3343
runs-on: ubuntu-latest
3444
steps:
3545
# install Chrome first, so the correct version of webdriver can be installed by chromedriver
@@ -68,9 +78,20 @@ jobs:
6878
run: yarn build:changed data-connect
6979
- name: Run tests on changed packages
7080
run: xvfb-run yarn test:changed data-connect
81+
env:
82+
POSTGRES_PASSWORD: postgres
7183
test-firefox:
7284
name: Test Data Connect on Firefox If Changed
73-
85+
services:
86+
postgres:
87+
image: postgres
88+
env:
89+
POSTGRES_PASSWORD: postgres
90+
options: >-
91+
--health-cmd pg_isready
92+
--health-interval 10s
93+
--health-timeout 5s
94+
--health-retries 5
7495
runs-on: ubuntu-latest
7596

7697
steps:
@@ -99,7 +120,16 @@ jobs:
99120
test-webkit:
100121
name: Test Data Connect on Webkit if Changed
101122
runs-on: macos-latest
102-
123+
services:
124+
postgres:
125+
image: postgres
126+
env:
127+
POSTGRES_PASSWORD: postgres
128+
options: >-
129+
--health-cmd pg_isready
130+
--health-interval 10s
131+
--health-timeout 5s
132+
--health-retries 5
103133
steps:
104134
- name: Checkout Repo
105135
uses: actions/checkout@v4

0 commit comments

Comments
 (0)