Skip to content

Commit 080968a

Browse files
authored
Merge pull request #63 from PHPCSStandards/feature/ghactions-update-composer-action
GH Actions: version update for `ramsey/composer-install`
2 parents 45e59e8 + baaabde commit 080968a

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.github/workflows/cs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ jobs:
3636
- name: 'Composer: adjust dependencies'
3737
run: |
3838
# The sniff stage doesn't run the unit tests, so no need for PHPUnit.
39-
composer remove --no-update --dev phpunit/phpunit --no-scripts
39+
composer remove --no-update --dev phpunit/phpunit --no-scripts --no-interaction
4040
# Using PHPCS `master` as an early detection system for bugs upstream.
41-
composer require --no-update squizlabs/php_codesniffer:"dev-master"
41+
composer require --no-update squizlabs/php_codesniffer:"dev-master" --no-interaction
4242
4343
# Install dependencies and handle caching in one go.
4444
# @link https://github.com/marketplace/actions/install-composer-dependencies
4545
- name: Install Composer dependencies
46-
uses: "ramsey/composer-install@v1"
46+
uses: "ramsey/composer-install@v2"
4747

4848
- name: Install xmllint
4949
run: sudo apt-get install --no-install-recommends -y libxml2-utils

.github/workflows/quicktest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ jobs:
6262
- name: 'Composer: adjust dependencies'
6363
run: |
6464
# Set the PHPCS version to be used in the tests.
65-
composer require --no-update squizlabs/php_codesniffer:"${{ matrix.phpcs_version }}" --no-scripts
65+
composer require --no-update squizlabs/php_codesniffer:"${{ matrix.phpcs_version }}" --no-scripts --no-interaction
6666
# Remove the PHPCSDevCS dependency as it has different PHPCS requirements and would block installs.
67-
composer remove --no-update --dev phpcsstandards/phpcsdevcs --no-scripts
67+
composer remove --no-update --dev phpcsstandards/phpcsdevcs --no-scripts --no-interaction
6868
6969
# Install dependencies and handle caching in one go.
7070
# @link https://github.com/marketplace/actions/install-composer-dependencies
7171
- name: Install Composer dependencies
72-
uses: "ramsey/composer-install@v1"
72+
uses: "ramsey/composer-install@v2"
7373

7474
- name: Lint against parse errors
7575
if: ${{ matrix.lint }}

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,20 +103,20 @@ jobs:
103103
- name: 'Composer: adjust dependencies'
104104
run: |
105105
# Set the PHPCS version to be used in the tests.
106-
composer require --no-update squizlabs/php_codesniffer:"${{ matrix.phpcs_version }}" --no-scripts
106+
composer require --no-update squizlabs/php_codesniffer:"${{ matrix.phpcs_version }}" --no-scripts --no-interaction
107107
# Remove the PHPCSDevCS dependency as it has different PHPCS requirements and would block installs.
108-
composer remove --no-update --dev phpcsstandards/phpcsdevcs --no-scripts
108+
composer remove --no-update --dev phpcsstandards/phpcsdevcs --no-scripts --no-interaction
109109
110110
# Install dependencies and handle caching in one go.
111111
# @link https://github.com/marketplace/actions/install-composer-dependencies
112112
- name: Install Composer dependencies - normal
113113
if: ${{ matrix.php < 8.2 }}
114-
uses: "ramsey/composer-install@v1"
114+
uses: "ramsey/composer-install@v2"
115115

116116
# For PHP "nightly", we need to install with ignore platform reqs as not all dependencies allow installation.
117117
- name: Install Composer dependencies - with ignore platform
118118
if: ${{ matrix.php >= 8.2 }}
119-
uses: "ramsey/composer-install@v1"
119+
uses: "ramsey/composer-install@v2"
120120
with:
121121
composer-options: --ignore-platform-reqs
122122

0 commit comments

Comments
 (0)