Skip to content

Commit 9bcffbc

Browse files
committed
fix: uncomment steps for preparing local stack environment and update FORK_BLOCK in test environment setup
1 parent 52e0101 commit 9bcffbc

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ jobs:
4040
- name: Run unit tests
4141
run: npm run test:unit
4242

43-
# - name: Prepare local stack env
44-
# id: prepare
45-
# run: npx tsx ./test-stack/prepare-test-env.ts
43+
- name: Prepare local stack env
44+
id: prepare
45+
run: npx tsx ./test-stack/prepare-test-env.ts
4646

4747
# - name: Fetch genesis block number
4848
# id: fetch_block
@@ -52,13 +52,13 @@ jobs:
5252
# echo "BLOCK=$BLOCK_NUMBER" >> $GITHUB_OUTPUT
5353
# echo "URL=$FORK_URL" >> $GITHUB_OUTPUT
5454

55-
- name: Docker Compose Action
55+
- name: Start local stack
5656
uses: hoverkraft-tech/[email protected]
5757
with:
5858
compose-file: "./test-stack/docker-compose.yml"
5959
env:
6060
FORK_URL: "https://bellecour.iex.ec"
61-
FORK_BLOCK: 33336357
61+
FORK_BLOCK: 33336595
6262
NETWORK_NAME: "bellecour"
6363

6464
- name: Run integration tests

test-stack/prepare-test-env.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ async function createEnvFiles(forkBlockNumber: number) {
3636
writeFileSync(
3737
'.env',
3838
`############ THIS FILE IS GENERATED ############
39-
# run "node prepare-test-env.js" to regenerate #
40-
################################################
39+
# run "node prepare-test-env.js" to regenerate #
40+
################################################
4141
42-
# blockchain node to use as the reference for the local fork
43-
FORK_URL=${forkUrl}
44-
# block number to fork from
45-
FORK_BLOCK=${forkBlockNumber}`,
42+
# blockchain node to use as the reference for the local fork
43+
FORK_URL=${forkUrl}
44+
# block number to fork from
45+
FORK_BLOCK=${forkBlockNumber}`,
4646
);
4747
}
4848

0 commit comments

Comments
 (0)