From bdeda32d83093029c219192fb6f4f627a63f8eb6 Mon Sep 17 00:00:00 2001 From: diosmosis Date: Tue, 24 Oct 2023 10:54:41 -0700 Subject: [PATCH] cache docker layers and sleep for 15s after doing docker-compose up and output docker-compose logs after test run --- .github/workflows/tests.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f02d9f8d1..fa2edd05b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -135,9 +135,9 @@ jobs: uses: actions/cache@v2 with: path: /tmp/.buildx-cache - key: ${{ runner.os }}-buildx-step1-${{ github.sha }} + key: ${{ runner.os }}-buildx restore-keys: | - ${{ runner.os }}-buildx- + ${{ runner.os }}-buildx - uses: isbang/compose-action@v1.5.1 with: services: wordpress @@ -147,6 +147,7 @@ jobs: WORDPRESS_FOLDER: test RESET_DATABASE: 1 WORDPRESS_VERSION: ${{ matrix.wp-versions }} + - run: sleep 15 # wait for docker-compose launch to finish # run tests - run: xvfb-run --auto-servernum npm run wdio @@ -157,6 +158,9 @@ jobs: RESET_DATABASE: 1 WORDPRESS_VERSION: ${{ matrix.wp-versions }} + # output docker-compose logs + - run: docker-compose logs --no-color + checkstyle: runs-on: 'ubuntu-20.04' steps: