Skip to content

Commit

Permalink
Fix: Streamline caching dependencies installed with composer (#545)
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Dec 6, 2022
1 parent ca8f1cc commit 65f2e71
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/code-coverage.yml
Expand Up @@ -29,14 +29,14 @@ jobs:
extensions: intl
php-version: ${{ matrix.php-version }}

- name: Get composer cache directory
- name: Determine composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
run: echo "directory=$(composer config cache-dir)" >> $GITHUB_OUTPUT

- name: Cache dependencies
- name: Cache dependencies installed with composer
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
path: ${{ steps.composer-cache.outputs.directory }}
key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('composer.*') }}
restore-keys: |
composer-${{ runner.os }}-${{ matrix.php-version }}-
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Expand Up @@ -38,14 +38,14 @@ jobs:
extensions: intl
php-version: ${{ matrix.php-version }}

- name: Get composer cache directory
- name: Determine composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
run: echo "directory=$(composer config cache-dir)" >> $GITHUB_OUTPUT

- name: Cache dependencies
- name: Cache dependencies installed with composer
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
path: ${{ steps.composer-cache.outputs.directory }}
key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('composer.*') }}
restore-keys: |
composer-${{ runner.os }}-${{ matrix.php-version }}-
Expand Down

0 comments on commit 65f2e71

Please sign in to comment.