From a7a55b3ccb810c298b6eb1f8e9255eb56d0ee311 Mon Sep 17 00:00:00 2001 From: picolloo Date: Tue, 5 Mar 2024 15:01:37 -0300 Subject: [PATCH] chore: using docker --- .github/workflows/docker_test.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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