mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Updated composer cache strategy
This commit is contained in:
parent
9b9fc8ca01
commit
8821c32ba2
13
.github/workflows/parallel.yml
vendored
13
.github/workflows/parallel.yml
vendored
@ -90,13 +90,16 @@ jobs:
|
||||
run: |
|
||||
cp .env.ci .env
|
||||
|
||||
- name: Cache composer 📦
|
||||
uses: actions/cache@v2
|
||||
id: php-cache # use this to check for `cache-hit` (`steps.php-cache.outputs.cache-hit != 'true'`)
|
||||
- name: Get Composer Cache Directory
|
||||
id: composer-cache
|
||||
run: |
|
||||
echo "::set-output name=dir::$(composer config cache-files-dir)"
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: ${{ steps.composercache.outputs.dir }}
|
||||
path: ${{ steps.composer-cache.outputs.dir }}
|
||||
key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}
|
||||
restore-keys: ${{ runner.os }}-${{ matrix.php }}-composer-
|
||||
restore-keys: |
|
||||
${{ runner.os }}-${{ matrix.php }}-composer-
|
||||
|
||||
# - name: Cache dependencies actions/cache@v3
|
||||
# uses: actions/cache@v3
|
||||
|
Loading…
x
Reference in New Issue
Block a user