diff --git a/.github/workflows/libp2p-rust-dht.yml b/.github/workflows/libp2p-rust-dht.yml index 5214038..a86b58b 100644 --- a/.github/workflows/libp2p-rust-dht.yml +++ b/.github/workflows/libp2p-rust-dht.yml @@ -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 @@ -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: | @@ -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 @@ -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: |