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:
jrfnl
2021-12-26 20:43:07 +01:00
committed by Shivam Mathur
parent d78b8a6d49
commit bca2d0b1b0
4 changed files with 4 additions and 4 deletions

View File

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