Skip to content

Commit

Permalink
Do not rely on composer config cache-files-dir command in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sidz committed Jul 21, 2021
1 parent 78d2432 commit 36516d1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/ci.yaml
Expand Up @@ -41,14 +41,10 @@ jobs:
ini-values: memory_limit=512M
tools: composer:v2

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

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

0 comments on commit 36516d1

Please sign in to comment.