Skip to content

Commit

Permalink
Update unit-tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaydsouza committed Jan 11, 2025
1 parent 41102ae commit 863c9b9
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,23 @@ jobs:
coverage: none
tools: composer, phpunit

- name: Get Composer Cache Directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Remove composer.lock
run: rm -f composer.lock

- name: Install dependencies
run: |
composer update --no-interaction --prefer-dist
composer install --prefer-dist --no-progress
composer install --no-interaction --prefer-dist --no-progress
- name: Install WordPress Test Suite
env:
Expand Down

0 comments on commit 863c9b9

Please sign in to comment.