Skip to content

Commit

Permalink
Test everything including pg integration
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-zero committed Aug 11, 2023
1 parent 0be6170 commit 6a3b9fc
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions .github/workflows/libp2p-rust-dht.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,19 @@ jobs:

runs-on: ubuntu-latest

services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: mysecretpassword
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432

steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -179,7 +192,7 @@ jobs:
RUSTFLAGS: "-Cinstrument-coverage"
LLVM_PROFILE_FILE: "libp2p-rust-dht-%p-%m.profraw"
run: |
cargo test --verbose
cargo test --verbose --all
- name: Get coverage data for codecov
run: |
Expand Down Expand Up @@ -226,6 +239,19 @@ jobs:

runs-on: ubuntu-latest

services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: mysecretpassword
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432

steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -271,7 +297,7 @@ jobs:
RUSTFLAGS: "-Cinstrument-coverage"
LLVM_PROFILE_FILE: "libp2p-rust-dht-%p-%m.profraw"
run: |
cargo test --verbose
cargo test --verbose --all
- name: Run grcov
run: |
Expand Down

0 comments on commit 6a3b9fc

Please sign in to comment.