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