mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Attempt different cache strategy
This commit is contained in:
parent
601eebeb87
commit
14350c3bd1
20
.github/workflows/parallel.yml
vendored
20
.github/workflows/parallel.yml
vendored
@ -15,8 +15,8 @@ jobs:
|
|||||||
operating-system: ['ubuntu-20.04', 'ubuntu-22.04']
|
operating-system: ['ubuntu-20.04', 'ubuntu-22.04']
|
||||||
php-versions: ['8.1','8.2']
|
php-versions: ['8.1','8.2']
|
||||||
phpunit-versions: ['latest']
|
phpunit-versions: ['latest']
|
||||||
ci_node_total: [ 16 ]
|
ci_node_total: [ 12 ]
|
||||||
ci_node_index: [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
|
ci_node_index: [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
|
||||||
laravel: [9.*]
|
laravel: [9.*]
|
||||||
dependency-version: [prefer-stable]
|
dependency-version: [prefer-stable]
|
||||||
|
|
||||||
@ -90,11 +90,19 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cp .env.ci .env
|
cp .env.ci .env
|
||||||
|
|
||||||
- name: Cache dependencies actions/cache@v3
|
- name: Cache composer 📦
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v2
|
||||||
|
id: php-cache # use this to check for `cache-hit` (`steps.php-cache.outputs.cache-hit != 'true'`)
|
||||||
with:
|
with:
|
||||||
path: ~/.composer/cache/files
|
path: ${{ steps.composercache.outputs.dir }}
|
||||||
key: dependencies-${{ matrix.dependency-version }}-laravel-${{ matrix.laravel }}-php-${{ matrix.php-versions }}-composer-${{ hashFiles('composer.json') }}
|
key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}
|
||||||
|
restore-keys: ${{ runner.os }}-${{ matrix.php }}-composer-
|
||||||
|
|
||||||
|
# - name: Cache dependencies actions/cache@v3
|
||||||
|
# uses: actions/cache@v3
|
||||||
|
# with:
|
||||||
|
# path: ~/.composer/cache/files
|
||||||
|
# key: dependencies-${{ matrix.dependency-version }}-laravel-${{ matrix.laravel }}-php-${{ matrix.php-versions }}-composer-${{ hashFiles('composer.json') }}
|
||||||
|
|
||||||
- name: Install composer dependencies
|
- name: Install composer dependencies
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user