mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-07-31 18:57:17 +07:00
Example code: remove --no-interaction
from Composer commands
All Composer commands used in CI should use `--no-interaction` to prevent them hanging in case interaction is expected. However, as setupPHP sets the `COMPOSER_NO_INTERACTION` flag (as of this version), this is not needed when using setupPHP. This removes redundant `--no-interaction` arguments from the example code. Also see: https://blog.packagist.com/composer-2-2/#more-secure-plugin-execution
This commit is contained in:
@ -57,7 +57,7 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
composer install --no-progress --prefer-dist --optimize-autoloader
|
||||
composer run-script post-install-cmd --no-interaction
|
||||
composer run-script post-install-cmd
|
||||
|
||||
# Add a step to run migrations if required
|
||||
- name: Test with phpunit
|
||||
|
Reference in New Issue
Block a user