Skip to content

Commit

Permalink
cache docker layers and sleep for 15s after doing docker-compose up a…
Browse files Browse the repository at this point in the history
…nd output docker-compose logs after test run
  • Loading branch information
diosmosis committed Oct 24, 2023
1 parent da3a4c5 commit bdeda32
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
services: wordpress
Expand All @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit bdeda32

Please sign in to comment.