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: |
|
run: |
|
||||||
cp .env.ci .env
|
cp .env.ci .env
|
||||||
|
|
||||||
- name: Cache composer 📦
|
- name: Get Composer Cache Directory
|
||||||
uses: actions/cache@v2
|
id: composer-cache
|
||||||
id: php-cache # use this to check for `cache-hit` (`steps.php-cache.outputs.cache-hit != 'true'`)
|
run: |
|
||||||
|
echo "::set-output name=dir::$(composer config cache-files-dir)"
|
||||||
|
- uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.composercache.outputs.dir }}
|
path: ${{ steps.composer-cache.outputs.dir }}
|
||||||
key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}
|
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
|
# - name: Cache dependencies actions/cache@v3
|
||||||
# uses: actions/cache@v3
|
# uses: actions/cache@v3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user