Skip to content

Commit

Permalink
chore(ci): add postgres port mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
armyhaylenko committed Jan 10, 2025
1 parent f12602c commit a8d2dac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ jobs:
services:
postgres:
image: postgres:14-alpine
ports:
- 5432:5432
env:
POSTGRES_PASSWORD: postgres
options: >-
Expand Down Expand Up @@ -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

0 comments on commit a8d2dac

Please sign in to comment.