Skip to content

Commit

Permalink
chore: using docker
Browse files Browse the repository at this point in the history
  • Loading branch information
pikonha committed Mar 5, 2024
1 parent 78fd166 commit a7a55b3
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/docker_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,22 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Change directory
run: cd packages/contracts

- name: Build Docker image
run: docker-compose -f compose.yaml up -d
run: docker build -t blockful/external-resolver-contracts .

- name: Start Docker container
run: docker run -d --name external-resolver-contracts -p 8545:8545 blockful/external-resolver-contracts

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

- name: Run tests
run: yarn test

- name: Stop Docker container
run: docker-compose -f compose.yaml down
run: docker stop external-resolver-contracts

0 comments on commit a7a55b3

Please sign in to comment.