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 authored and Shivam Mathur committed 2022-01-05 15:20:37 +05:30
1 parent d78b8a6d49
commit bca2d0b1b0
4 files changed
+4 -4

No files matched your search

+1 -1
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