From a8d2dac138db7b309838b8c0c946c2446503578c Mon Sep 17 00:00:00 2001 From: armyhaylenko Date: Fri, 10 Jan 2025 18:16:42 +0200 Subject: [PATCH] chore(ci): add postgres port mapping --- .github/workflows/rust.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index f6dfac48..bf831ec7 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -69,6 +69,8 @@ jobs: services: postgres: image: postgres:14-alpine + ports: + - 5432:5432 env: POSTGRES_PASSWORD: postgres options: >- @@ -127,7 +129,7 @@ jobs: - name: Run tests env: - DATABASE_TEST_URL: "postgres://postgres:postgres@postgres:5432/postgres" + DATABASE_TEST_URL: "postgres://postgres:postgres@127.0.0.1:5432/postgres" DEVNET_RPC_URL: ${{ secrets.SOLANA_DEVNET_RPC_URL }} MAINNET_RPC_URL: ${{ secrets.SOLANA_MAINNET_RPC_URL }} run: cargo test --features integration_tests -- --nocapture