@@ -75,27 +75,35 @@ jobs:
7575 node-version : 20
7676 cache : ' npm'
7777
78- - name : Install dependencies
79- run : npm ci
78+ # - name: Install dependencies
79+ # run: npm ci
8080
81- - name : Check Format
82- run : npm run check-format
81+ # - name: Check Format
82+ # run: npm run check-format
8383
84- - name : Build
85- run : npm run build
84+ # - name: Build
85+ # run: npm run build
8686
87- - name : Run unit tests
88- run : npm run test:unit
87+ # - name: Run unit tests
88+ # run: npm run test:unit
8989
9090 - name : Prepare local stack env
9191 id : prepare
92- run : npx tsx test/scripts/prepare-test-env.ts
92+ run : npx tsx ./test-stack/prepare-test-env.ts
93+
94+ # - name: Fetch genesis block number
95+ # id: fetch_block
96+ # run: |
97+ # BLOCK_NUMBER=$(cat /test-stack/FORK_BLOCK)
98+ # FORK_URL=$(cat /test-stack/FORK_URL)
99+ # echo "BLOCK=$BLOCK_NUMBER" >> $GITHUB_OUTPUT
100+ # echo "URL=$FORK_URL" >> $GITHUB_OUTPUT
93101
94102 - name : Fetch genesis block number
95103 id : fetch_block
96104 run : |
97- BLOCK_NUMBER=$(cat /test-stack/FORK_BLOCK)
98- FORK_URL=$(cat /test-stack/FORK_URL)
105+ BLOCK_NUMBER=33335100
106+ FORK_URL="http://localhost:8545"
99107 echo "BLOCK=$BLOCK_NUMBER" >> $GITHUB_OUTPUT
100108 echo "URL=$FORK_URL" >> $GITHUB_OUTPUT
101109
@@ -105,20 +113,25 @@ jobs:
105113 fork-url : ${{ steps.fetch_block.outputs.URL }}
106114 fork-block-number : ${{ steps.fetch_block.outputs.BLOCK }}
107115
116+ - name : Wait for IPFS
117+ run : |
118+ # Wait for IPFS to be ready
119+ echo "Waiting for IPFS to be ready..."
120+ timeout 60 bash -c 'until curl -s http://localhost:5001 > /dev/null; do sleep 2; done'
121+
108122 - name : Start Graph Node
109123 run : |
110124 docker run -d \
111125 --name graphnode \
112- --network graphnet \
113126 -p 8000:8000 \
114127 -p 8020:8020 \
115128 -e POSTGRES_HOST=graphnode-postgres \
116129 -e POSTGRES_PORT=5432 \
117130 -e POSTGRES_USER=graphnode \
118131 -e POSTGRES_PASSWORD=password \
119132 -e POSTGRES_DB=graphnode-db \
120- -e IPFS=ipfs :5001 \
121- -e ETHEREUM=bellecour:http://blockchain-fork:8545 \
133+ -e IPFS=http://localhost :5001 \
134+ -e ETHEREUM=bellecour:"${{ steps.fetch_block.outputs.URL }}" \
122135 -e GRAPH_ETHEREUM_GENESIS_BLOCK_NUMBER="${{ steps.fetch_block.outputs.BLOCK }}" \
123136 --health-cmd "nc -w 1 localhost 8020" \
124137 --health-interval 10s \
0 commit comments