Skip to content

Commit c3bed0b

Browse files
committed
fix: update fetch block step to source environment variables and use dynamic values for FORK_URL and FORK_BLOCK
1 parent 9bcffbc commit c3bed0b

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,20 @@ jobs:
4444
id: prepare
4545
run: npx tsx ./test-stack/prepare-test-env.ts
4646

47-
# - name: Fetch genesis block number
48-
# id: fetch_block
49-
# run: |
50-
# BLOCK_NUMBER=$(cat /test-stack/FORK_BLOCK)
51-
# FORK_URL=$(cat /test-stack/FORK_URL)
52-
# echo "BLOCK=$BLOCK_NUMBER" >> $GITHUB_OUTPUT
53-
# echo "URL=$FORK_URL" >> $GITHUB_OUTPUT
47+
- name: Fetch genesis block number
48+
id: fetch_block
49+
run: |
50+
source ./test-stack/.env
51+
echo "BLOCK=$FORK_BLOCK" >> $GITHUB_OUTPUT
52+
echo "URL=$FORK_URL" >> $GITHUB_OUTPUT
5453
5554
- name: Start local stack
5655
uses: hoverkraft-tech/[email protected]
5756
with:
5857
compose-file: "./test-stack/docker-compose.yml"
5958
env:
60-
FORK_URL: "https://bellecour.iex.ec"
61-
FORK_BLOCK: 33336595
59+
FORK_URL: ${{ steps.fetch_block.outputs.URL }}
60+
FORK_BLOCK: ${{ steps.fetch_block.outputs.BLOCK }}
6261
NETWORK_NAME: "bellecour"
6362

6463
- name: Run integration tests

0 commit comments

Comments
 (0)