From ee3aac7f87a5c6bdf4ee4b9b2e6c5cdc4b4258d6 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Fri, 24 Dec 2021 04:57:38 +0100 Subject: [PATCH] GH Actions: version update for `ramsey/composer-install` The action used to install Composer packages and handle the caching has released a new major (and some follow-up patch releases), which means, the action reference needs to be updated to benefit from it. Includes adding `--no-interaction` to one "plain" Composer command to potentially prevent CI hanging if, for whatever reason, interaction would be needed in the future. Refs: * https://github.com/ramsey/composer-install/releases/tag/2.0.0 * https://github.com/ramsey/composer-install/releases/tag/2.0.1 * https://github.com/ramsey/composer-install/releases/tag/2.0.2 --- .github/workflows/cs.yml | 2 +- .github/workflows/test.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cs.yml b/.github/workflows/cs.yml index 7bc8296..d73501d 100644 --- a/.github/workflows/cs.yml +++ b/.github/workflows/cs.yml @@ -31,7 +31,7 @@ jobs: # Install dependencies and handle caching in one go. # @link https://github.com/marketplace/actions/install-composer-dependencies - name: Install Composer dependencies - uses: "ramsey/composer-install@v1" + uses: "ramsey/composer-install@v2" - name: Check PHP code style continue-on-error: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4f4c881..e0d3c40 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -43,18 +43,18 @@ jobs: # Remove the PHPCS standard as it has a minimum PHP requirements of PHP 5.4 and would block install on PHP 5.3. - name: 'Composer: remove PHPCS' if: ${{ matrix.php < 5.4 }} - run: composer remove --dev php-parallel-lint/php-code-style --no-update + run: composer remove --dev php-parallel-lint/php-code-style --no-update --no-interaction # Install dependencies and handle caching in one go. # @link https://github.com/marketplace/actions/install-composer-dependencies - name: Install Composer dependencies - normal if: ${{ matrix.experimental == false }} - uses: "ramsey/composer-install@v1" + uses: "ramsey/composer-install@v2" # For the PHP "nightly", we need to install with ignore platform reqs as not all dependencies allow it. - name: Install Composer dependencies - with ignore platform if: ${{ matrix.experimental == true }} - uses: "ramsey/composer-install@v1" + uses: "ramsey/composer-install@v2" with: composer-options: --ignore-platform-reqs