Skip to content

Commit 124a15b

Browse files
authored
fix: streamline test stack preparation in CI workflow (#46)
1 parent b660ee1 commit 124a15b

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -42,24 +42,8 @@ jobs:
4242
- name: Run unit tests
4343
run: npm run test:unit
4444

45-
- name: Prepare local stack env
46-
id: prepare
47-
run: npx tsx ./test-stack/prepare-test-env.ts
48-
49-
- name: Fetch genesis block number
50-
id: fetch_block
51-
run: |
52-
source .env
53-
echo "BLOCK=$FORK_BLOCK" >> $GITHUB_OUTPUT
54-
echo "URL=$FORK_URL" >> $GITHUB_OUTPUT
55-
56-
- name: Start local stack
57-
uses: hoverkraft-tech/[email protected]
58-
with:
59-
compose-file: "./test-stack/docker-compose.yml"
60-
env:
61-
FORK_URL: ${{ steps.fetch_block.outputs.URL }}
62-
FORK_BLOCK: ${{ steps.fetch_block.outputs.BLOCK }}
45+
- name: Prepare test stack
46+
run: npm run start-test-stack
6347

6448
- name: Run integration tests
6549
run: npm run test:e2e

0 commit comments

Comments
 (0)