From ae4c49eab5f09c0d06861954fde8d0e0170fbd94 Mon Sep 17 00:00:00 2001 From: Oleh Bairak Date: Wed, 24 Jan 2024 15:55:34 +0100 Subject: [PATCH] fix: clean --- .github/workflows/integration-tests-api.yml | 23 +++------------------ 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/.github/workflows/integration-tests-api.yml b/.github/workflows/integration-tests-api.yml index d30d010e53..9bdc17fabf 100644 --- a/.github/workflows/integration-tests-api.yml +++ b/.github/workflows/integration-tests-api.yml @@ -39,31 +39,15 @@ jobs: run: | npm ci --no-audit npx playwright install --with-deps chromium - - name: Log in to Docker Hub uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USER }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Print Working Directory - run: | - pwd - - - name: Check Docker cache and use if available + - name: Start docker containers run: | - SERVICES=("block-explorer_worker" "postgres" "matterlabs_local_node") # List of services - for SERVICE in "${SERVICES[@]}"; do - CACHE_IMAGE=$(docker images -q "$SERVICE:latest") - if [ -n "$CACHE_IMAGE" ]; then - echo "Using cached image for $SERVICE: $CACHE_IMAGE" - docker-compose -f "docker-compose.yaml" up -d --build $SERVICE - else - echo "No cached image found for $SERVICE. Building from scratch." - docker-compose -f "docker-compose.yaml" up -d --build $SERVICE - fi - done - + docker-compose -f "docker-compose.yaml" up -d --build - name: List running containers run: docker ps @@ -71,8 +55,7 @@ jobs: run: | cd packages/integration-tests npx jest --verbose --testPathPattern=${{ matrix.test-pattern }} - - name: Stop containers if: always() run: | - docker-compose -f "docker-compose.yaml" down + docker-compose -f "docker-compose.yaml" down \ No newline at end of file