mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-10 06:36:13 +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:
Oliver Klee 2020-10-31 19:18:59 +01:00 committed by GitHub
parent 4dc98a081a
commit 6d50a29034
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 4 deletions

View file

@ -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"

View file

@ -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: