Skip to content

Commit

Permalink
fixed cache in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bupy7 committed Jan 22, 2022
1 parent 499777c commit 9da95f5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,16 @@ jobs:
extensions: xmlwriter
tools: composer:v2

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

- name: Cache Composer packages
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: |
php${{ matrix.php }}-composer-
restore-keys: php${{ matrix.php }}-composer-

- name: Install dependencies
run: composer install --no-plugins
Expand Down

0 comments on commit 9da95f5

Please sign in to comment.