From 6a3b9fc6298fc8bf04b45a21d7856d2028944f9c Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Fri, 11 Aug 2023 09:51:50 +0200 Subject: [PATCH] Test everything including pg integration --- .github/workflows/libp2p-rust-dht.yml | 30 +++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) 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: |