Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
hellwolf committed Aug 28, 2024
1 parent 8d793f6 commit 872f98d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/call.test-local-subgraph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,12 @@ jobs:
- name: Docker compose
if: steps.base.outputs.cache-hit != 'true'
run: |
docker compose up --force-recreate &
docker compose up --force-recreate --detach
working-directory: ${{ env.subgraph-working-directory }}

- name: Run subgraph integration test suite
if: steps.base.outputs.cache-hit != 'true'
run: yarn test --network localhost
run: |
export DOCKER_HOST_GATEWAY_IP=$(docker network inspect bridge | jq -r '.[0].IPAM.Config[].Gateway)
yarn test --network localhost
working-directory: ${{ env.subgraph-working-directory }}
3 changes: 1 addition & 2 deletions packages/subgraph/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ services:
- "8030:8030"
- "8040:8040"
depends_on:
- docker-host
- ipfs
- postgres
extra_hosts:
Expand All @@ -19,7 +18,7 @@ services:
postgres_pass: let-me-in
postgres_db: graph-node
ipfs: "ipfs:5001"
ethereum: "mainnet:http://host.docker.internal:8545"
ethereum: "mainnet:http://${DOCKER_HOST_GATEWAY_IP}:8545"
GRAPH_LOG: info
ipfs:
image: ipfs/go-ipfs:v0.4.23
Expand Down

0 comments on commit 872f98d

Please sign in to comment.