Skip to content

Commit 6c0047e

Browse files
committed
GH Actions: always use --no-interaction for Composer
Adding `--no-interaction` to "plain" Composer commands to potentially prevent CI hanging if, for whatever reason, interaction would be needed in the future.
1 parent e2ca5c3 commit 6c0047e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/check-cs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131

3232
- name: Install dependencies
3333
run: |
34-
composer update --prefer-dist --no-suggest --no-progress
34+
composer update --prefer-dist --no-suggest --no-progress --no-interaction
3535
3636
- name: Check Code Style
3737
run: vendor/bin/phpcs --report-full --report-checkstyle=./phpcs-report.xml

.github/workflows/run-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,21 +56,21 @@ jobs:
5656
# Remove the coding standards package as it has a higher minimum PHP
5757
# requirement and would prevent running the tests on older PHP versions.
5858
- name: 'Composer: remove CS dependency'
59-
run: composer remove --dev --no-update dms/coding-standard
59+
run: composer remove --dev --no-update dms/coding-standard --no-interaction
6060

6161
- name: 'Composer: update PHPUnit for testing lowest'
6262
if: ${{ matrix.dependency-version == 'prefer-lowest' }}
63-
run: composer require --no-update phpunit/phpunit:"^9.0"
63+
run: composer require --no-update phpunit/phpunit:"^9.0" --no-interaction
6464

6565
- name: Install dependencies - normal
6666
if: ${{ matrix.php < 8.1 }}
6767
run: |
68-
composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress
68+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress --no-interaction
6969
7070
- name: Install dependencies - ignore platform reqs
7171
if: ${{ matrix.php >= 8.1 }}
7272
run: |
73-
composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress --ignore-platform-reqs
73+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress --ignore-platform-reqs --no-interaction
7474
7575
- name: Execute Unit Tests
7676
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)