mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-25 19:56:13 +01:00
[TASK] Cache Composer dependencies during build (#36)
Also fix the name of TS the lint step.
This commit is contained in:
parent
a9f64159ec
commit
cef4baddbc
2 changed files with 18 additions and 1 deletions
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
|
@ -33,10 +33,18 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: "Cache dependencies installed with composer"
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: ~/.composer/cache
|
||||||
|
key: php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}
|
||||||
|
restore-keys: |
|
||||||
|
php${{ matrix.php-version }}-composer-
|
||||||
|
|
||||||
- name: Install Composer dependencies
|
- name: Install Composer dependencies
|
||||||
run: composer install --no-progress
|
run: composer install --no-progress
|
||||||
|
|
||||||
- name: Run PHP lint
|
- name: Run TypoScript lint
|
||||||
run: composer ci:ts:lint
|
run: composer ci:ts:lint
|
||||||
|
|
||||||
php-code-sniffer:
|
php-code-sniffer:
|
||||||
|
@ -48,6 +56,14 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: "Cache dependencies installed with composer"
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: ~/.composer/cache
|
||||||
|
key: php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}
|
||||||
|
restore-keys: |
|
||||||
|
php${{ matrix.php-version }}-composer-
|
||||||
|
|
||||||
- name: Install Composer dependencies
|
- name: Install Composer dependencies
|
||||||
run: composer install --no-progress
|
run: composer install --no-progress
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
|
||||||
## x.y.z
|
## x.y.z
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
- Cache Composer dependencies in build (#31)
|
||||||
- Add a status badge for GitHub actions (#32)
|
- Add a status badge for GitHub actions (#32)
|
||||||
- Composer script for PHP code sniffer fixing (#21)
|
- Composer script for PHP code sniffer fixing (#21)
|
||||||
- Run the functional tests in parallel
|
- Run the functional tests in parallel
|
||||||
|
|
Loading…
Reference in a new issue