Skip to content

Commit

Permalink
try to cache PHP extensions and composer cache in GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-netFantom committed Jun 15, 2023
1 parent 38cde89 commit ebcbb84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ jobs:
run: composer validate --strict

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

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

0 comments on commit ebcbb84

Please sign in to comment.