Skip to content

Commit

Permalink
Merge pull request #547 from jrfnl/feature/examples-composer-use-no-i…
Browse files Browse the repository at this point in the history
…nteraction

Example code: remove `--no-interaction` from Composer commands
  • Loading branch information
shivammathur committed Dec 27, 2021
2 parents e7e1eee + 94aecb1 commit 812d2bc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -300,7 +300,7 @@ These tools can be set up globally using the `tools` input. It accepts a string
- Input `tools` is useful to set up tools which you only use in GitHub Actions, thus keeping your `composer.json` tidy.
- If you do not want to use all your dev-dependencies in GitHub Actions workflow, you can run composer with `--no-dev` and install required tools using `tools` input to speed up your workflow.
- If you have a tool in your `composer.json`, do not set up it with `tools` input as the two instances of the tool might conflict.
- By default, `COMPOSER_NO_INTERACTION` is set to `1` and `COMPOSER_PROCESS_TIMEOUT` is set to `0`.
- By default, `COMPOSER_NO_INTERACTION` is set to `1` and `COMPOSER_PROCESS_TIMEOUT` is set to `0`. In effect, this means that Composer commands in your scripts do not need to specify `--no-interaction`.

## :signal_strength: Coverage Support

Expand Down
2 changes: 1 addition & 1 deletion examples/cakephp-mysql.yml
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/cakephp-postgres.yml
Expand Up @@ -54,7 +54,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
Expand Down
2 changes: 1 addition & 1 deletion examples/cakephp.yml
Expand Up @@ -37,7 +37,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
- name: Test with phpunit
run: vendor/bin/phpunit --coverage-text
Expand Down

0 comments on commit 812d2bc

Please sign in to comment.