Skip to content

Commit 6a3b9fc

Browse files
committed
Test everything including pg integration
1 parent 0be6170 commit 6a3b9fc

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

.github/workflows/libp2p-rust-dht.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,19 @@ jobs:
144144

145145
runs-on: ubuntu-latest
146146

147+
services:
148+
postgres:
149+
image: postgres
150+
env:
151+
POSTGRES_PASSWORD: mysecretpassword
152+
options: >-
153+
--health-cmd pg_isready
154+
--health-interval 10s
155+
--health-timeout 5s
156+
--health-retries 5
157+
ports:
158+
- 5432:5432
159+
147160
steps:
148161
- uses: actions/checkout@v3
149162

@@ -179,7 +192,7 @@ jobs:
179192
RUSTFLAGS: "-Cinstrument-coverage"
180193
LLVM_PROFILE_FILE: "libp2p-rust-dht-%p-%m.profraw"
181194
run: |
182-
cargo test --verbose
195+
cargo test --verbose --all
183196
184197
- name: Get coverage data for codecov
185198
run: |
@@ -226,6 +239,19 @@ jobs:
226239

227240
runs-on: ubuntu-latest
228241

242+
services:
243+
postgres:
244+
image: postgres
245+
env:
246+
POSTGRES_PASSWORD: mysecretpassword
247+
options: >-
248+
--health-cmd pg_isready
249+
--health-interval 10s
250+
--health-timeout 5s
251+
--health-retries 5
252+
ports:
253+
- 5432:5432
254+
229255
steps:
230256
- uses: actions/checkout@v3
231257

@@ -271,7 +297,7 @@ jobs:
271297
RUSTFLAGS: "-Cinstrument-coverage"
272298
LLVM_PROFILE_FILE: "libp2p-rust-dht-%p-%m.profraw"
273299
run: |
274-
cargo test --verbose
300+
cargo test --verbose --all
275301
276302
- name: Run grcov
277303
run: |

0 commit comments

Comments
 (0)