diff --git a/.github/workflows/docker_test.yaml b/.github/workflows/docker_test.yaml index fac951ab..d98808a9 100644 --- a/.github/workflows/docker_test.yaml +++ b/.github/workflows/docker_test.yaml @@ -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