Skip to content

Commit

Permalink
chore: run anvil using compose
Browse files Browse the repository at this point in the history
  • Loading branch information
pikonha committed Mar 5, 2024
1 parent 5d53ed3 commit 78fd166
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/docker_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,13 @@ jobs:
uses: actions/checkout@v2

- name: Build Docker image
run: docker build -t anvil packages/contracts

- name: Start Docker container
run: docker run -d --name blockchain-node -p 8545:8545 anvil
run: docker-compose -f compose.yaml up -d

- name: Wait for container to be healthy
run: docker wait blockchain-node
run: docker-compose -f compose.yaml exec contracts sh -c 'while ! nc -z localhost 8545; do sleep 1; done'

- name: Run tests
run: yarn test

- name: Stop Docker container
run: docker stop blockchain-node
run: docker-compose -f compose.yaml down

0 comments on commit 78fd166

Please sign in to comment.