Skip to content

Commit

Permalink
Fix cache in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
casperbakker committed Nov 11, 2024
1 parent e9704c6 commit 6770110
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,14 @@ jobs:
with:
php-version: ${{ matrix.php-versions }}

- name: Get composer cache directory
- name: Cache Composer packages
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
path: vendor
key: composer-cache-${{ hashFiles('**/composer.lock') }}
restore-keys: |
composer-cache-
- name: Install dependencies
run: composer install --prefer-dist
Expand Down

0 comments on commit 6770110

Please sign in to comment.