mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-22 23:56:12 +01:00
[TASK] Make the Composer caches on CI more fine-grained (#393)
The installed Composer packages will be different depending on the major TYPO3 version being tested and on the strategy for the dependencies (highest, lowest). So it makes sense to have separate Composer caches for these versions in order to avoid cache misses.
This commit is contained in:
parent
4158161c9d
commit
6b98478f58
3 changed files with 10 additions and 10 deletions
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
|
@ -115,9 +115,9 @@ jobs:
|
||||||
- name: "Cache dependencies installed with composer"
|
- name: "Cache dependencies installed with composer"
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
key: "php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}"
|
key: "php${{ matrix.php-version }}-typo3${{ matrix.typo3-version }}-${{ matrix.composer-dependencies }}-composer-${{ hashFiles('**/composer.json') }}"
|
||||||
path: ~/.cache/composer
|
path: ~/.cache/composer
|
||||||
restore-keys: "php${{ matrix.php-version }}-composer-\n"
|
restore-keys: "php${{ matrix.php-version }}-typo3${{ matrix.typo3-version }}-${{ matrix.composer-dependencies }}-composer-\n"
|
||||||
- name: "Install TYPO3 Core"
|
- name: "Install TYPO3 Core"
|
||||||
env:
|
env:
|
||||||
TYPO3: "${{ matrix.typo3-version }}"
|
TYPO3: "${{ matrix.typo3-version }}"
|
||||||
|
@ -195,9 +195,9 @@ jobs:
|
||||||
- name: "Cache dependencies installed with composer"
|
- name: "Cache dependencies installed with composer"
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
key: "php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}"
|
key: "php${{ matrix.php-version }}-typo3${{ matrix.typo3-version }}-${{ matrix.composer-dependencies }}-composer-${{ hashFiles('**/composer.json') }}"
|
||||||
path: ~/.cache/composer
|
path: ~/.cache/composer
|
||||||
restore-keys: "php${{ matrix.php-version }}-composer-\n"
|
restore-keys: "php${{ matrix.php-version }}-typo3${{ matrix.typo3-version }}-${{ matrix.composer-dependencies }}-composer-\n"
|
||||||
- name: "Install TYPO3 Core"
|
- name: "Install TYPO3 Core"
|
||||||
env:
|
env:
|
||||||
TYPO3: "${{ matrix.typo3-version }}"
|
TYPO3: "${{ matrix.typo3-version }}"
|
||||||
|
|
4
.github/workflows/codecoverage.yml
vendored
4
.github/workflows/codecoverage.yml
vendored
|
@ -24,9 +24,9 @@ jobs:
|
||||||
- name: "Cache dependencies installed with composer"
|
- name: "Cache dependencies installed with composer"
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
key: "php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}"
|
key: "php${{ matrix.php-version }}-typo3${{ matrix.typo3-version }}-composer-${{ hashFiles('**/composer.json') }}"
|
||||||
path: ~/.cache/composer
|
path: ~/.cache/composer
|
||||||
restore-keys: "php${{ matrix.php-version }}-composer-\n"
|
restore-keys: "php${{ matrix.php-version }}-typo3${{ matrix.typo3-version }}-composer-\n"
|
||||||
- env:
|
- env:
|
||||||
TYPO3: "${{ matrix.typo3-version }}"
|
TYPO3: "${{ matrix.typo3-version }}"
|
||||||
name: "Install TYPO3 Core"
|
name: "Install TYPO3 Core"
|
||||||
|
|
8
.github/workflows/predefined.yml
vendored
8
.github/workflows/predefined.yml
vendored
|
@ -168,9 +168,9 @@ jobs:
|
||||||
- name: "Cache dependencies installed with composer"
|
- name: "Cache dependencies installed with composer"
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
key: "php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}"
|
key: "php${{ matrix.php-version }}-typo3${{ matrix.typo3-version }}-${{ matrix.composer-dependencies }}-composer-${{ hashFiles('**/composer.json') }}"
|
||||||
path: ~/.cache/composer
|
path: ~/.cache/composer
|
||||||
restore-keys: "php${{ matrix.php-version }}-composer-\n"
|
restore-keys: "php${{ matrix.php-version }}-typo3${{ matrix.typo3-version }}-${{ matrix.composer-dependencies }}-composer-\n"
|
||||||
- name: "Install TYPO3 Core"
|
- name: "Install TYPO3 Core"
|
||||||
env:
|
env:
|
||||||
TYPO3: "${{ matrix.typo3-version }}"
|
TYPO3: "${{ matrix.typo3-version }}"
|
||||||
|
@ -221,9 +221,9 @@ jobs:
|
||||||
- name: "Cache dependencies installed with composer"
|
- name: "Cache dependencies installed with composer"
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
key: "php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}"
|
key: "php${{ matrix.php-version }}-typo3${{ matrix.typo3-version }}-${{ matrix.composer-dependencies }}-composer-${{ hashFiles('**/composer.json') }}"
|
||||||
path: ~/.cache/composer
|
path: ~/.cache/composer
|
||||||
restore-keys: "php${{ matrix.php-version }}-composer-\n"
|
restore-keys: "php${{ matrix.php-version }}-typo3${{ matrix.typo3-version }}-${{ matrix.composer-dependencies }}-composer-\n"
|
||||||
- name: "Install TYPO3 Core"
|
- name: "Install TYPO3 Core"
|
||||||
env:
|
env:
|
||||||
TYPO3: "${{ matrix.typo3-version }}"
|
TYPO3: "${{ matrix.typo3-version }}"
|
||||||
|
|
Loading…
Reference in a new issue