From 31faec9ebf9d813fca43648d3c61547641992963 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Gori=C4=8Dar?= Date: Sat, 17 Feb 2024 17:43:32 +0100 Subject: [PATCH] feat: update `test.yml` workflow (again) --- .github/workflows/test.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9eacd57..0f2eb8c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -44,17 +44,18 @@ jobs: uses: Swatinem/rust-cache@v2 - name: "Initialize PostgreSQL database" run: | + docker stop kolomoni-e2e-test-database || true docker run --name kolomoni-e2e-test-database --expose 5432 \ --env POSTGRES_PASSWORD=postgres --env POSTGRES_USER=postgres \ --env POSTGRES_HOST_AUTH_METHOD=trust --env POSTGRES_DB=kolomoni \ -v ./kolomoni_test/assets/postgres-initialization-script.sh:/docker-entrypoint-initdb.d/postgres-initialization-script.sh \ --rm --detach postgres:16.2-alpine - name: "Initialize API server" - run: cargo build --release --features with_test_facilities && cargo run --release --features with_test_facilities & + run: cargo build --release --features with_test_facilities --verbose && cargo run --verbose --release --features with_test_facilities & - name: "Run end-to-end tests" env: TEST_API_SERVER_URL: "http://127.0.0.1:8866" - run: cd kolomoni_test && cargo test --jobs 1 + run: cd kolomoni_test && cargo test --jobs 1 --verbose - name: "Stop API server" # Kills the most recent background task. run: kill %%