try using docker hostnames
This commit is contained in:
parent
74db5052fa
commit
84b2a0874e
@ -26,14 +26,15 @@ jobs:
|
||||
git config --global url."https://$TOKEN:@git.vdb.to/".insteadOf "https://git.vdb.to/"
|
||||
- name: "Run DB container"
|
||||
env:
|
||||
DATABASE_HOSTNAME: 127.0.0.1
|
||||
DATABASE_HOSTNAME: ipld-eth-db
|
||||
DATABASE_PORT: 5432
|
||||
run: |
|
||||
set -x
|
||||
docker compose -f test/compose.yml up --attach ipld-eth-db &
|
||||
sleep 60
|
||||
docker ps
|
||||
apt-get update && apt-get install -y netcat
|
||||
nc -v $DATABASE_HOSTNAME 8077
|
||||
nc -v $DATABASE_HOSTNAME $DATABASE_PORT
|
||||
go test -v ./...
|
||||
# - name: "Run tests"
|
||||
# run: go test -v ./...
|
||||
|
Loading…
Reference in New Issue
Block a user