mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-22 19:36:12 +01:00
[TASK] Smoothen the way to Composer 2 (#152)
- drop the `--no-suggest` option that was deprecated in Composer 2 - output the Composer version to make debugging problems easier
This commit is contained in:
parent
4dc98a081a
commit
6d50a29034
2 changed files with 11 additions and 4 deletions
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
|
@ -38,6 +38,8 @@ jobs:
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: "${{ matrix.php-version }}"
|
php-version: "${{ matrix.php-version }}"
|
||||||
|
- name: "Show Composer version"
|
||||||
|
run: composer --version
|
||||||
-
|
-
|
||||||
name: "Cache dependencies installed with composer"
|
name: "Cache dependencies installed with composer"
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
|
@ -112,6 +114,8 @@ jobs:
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: "${{ matrix.php-version }}"
|
php-version: "${{ matrix.php-version }}"
|
||||||
|
- name: "Show Composer version"
|
||||||
|
run: composer --version
|
||||||
-
|
-
|
||||||
name: "Cache dependencies installed with composer"
|
name: "Cache dependencies installed with composer"
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
|
@ -132,13 +136,13 @@ jobs:
|
||||||
name: "Install lowest dependencies with composer"
|
name: "Install lowest dependencies with composer"
|
||||||
run: |
|
run: |
|
||||||
composer update --no-ansi --no-interaction |
|
composer update --no-ansi --no-interaction |
|
||||||
--no-progress --no-suggest --prefer-lowest
|
--no-progress --prefer-lowest
|
||||||
composer show
|
composer show
|
||||||
-
|
-
|
||||||
if: "matrix.composer-dependencies == 'highest'"
|
if: "matrix.composer-dependencies == 'highest'"
|
||||||
name: "Install highest dependencies with composer"
|
name: "Install highest dependencies with composer"
|
||||||
run: |
|
run: |
|
||||||
composer update --no-ansi --no-interaction --no-progress --no-suggest
|
composer update --no-ansi --no-interaction --no-progress
|
||||||
composer show
|
composer show
|
||||||
-
|
-
|
||||||
name: "Run unit tests"
|
name: "Run unit tests"
|
||||||
|
@ -167,6 +171,8 @@ jobs:
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: "${{ matrix.php-version }}"
|
php-version: "${{ matrix.php-version }}"
|
||||||
|
- name: "Show Composer version"
|
||||||
|
run: composer --version
|
||||||
-
|
-
|
||||||
name: "Cache dependencies installed with composer"
|
name: "Cache dependencies installed with composer"
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
|
@ -187,13 +193,13 @@ jobs:
|
||||||
name: "Install lowest dependencies with composer"
|
name: "Install lowest dependencies with composer"
|
||||||
run: |
|
run: |
|
||||||
composer update --no-ansi --no-interaction |
|
composer update --no-ansi --no-interaction |
|
||||||
--no-progress --no-suggest --prefer-lowest
|
--no-progress --prefer-lowest
|
||||||
composer show
|
composer show
|
||||||
-
|
-
|
||||||
if: "matrix.composer-dependencies == 'highest'"
|
if: "matrix.composer-dependencies == 'highest'"
|
||||||
name: "Install highest dependencies with composer"
|
name: "Install highest dependencies with composer"
|
||||||
run: |
|
run: |
|
||||||
composer update --no-ansi --no-interaction --no-progress --no-suggest
|
composer update --no-ansi --no-interaction --no-progress
|
||||||
composer show
|
composer show
|
||||||
-
|
-
|
||||||
name: "Start MySQL"
|
name: "Start MySQL"
|
||||||
|
|
|
@ -28,6 +28,7 @@ build-composer-dependencies:
|
||||||
variables:
|
variables:
|
||||||
COMPOSER_CACHE_DIR: '.composer'
|
COMPOSER_CACHE_DIR: '.composer'
|
||||||
script:
|
script:
|
||||||
|
- composer --version
|
||||||
- COMPOSER_CACHE_DIR=.composer
|
- COMPOSER_CACHE_DIR=.composer
|
||||||
composer install --prefer-dist --no-progress --optimize-autoloader
|
composer install --prefer-dist --no-progress --optimize-autoloader
|
||||||
artifacts:
|
artifacts:
|
||||||
|
|
Loading…
Reference in a new issue