From 0b371f92adf48eb11bfdc4b49fd4c51e8d16874a Mon Sep 17 00:00:00 2001 From: Raza Mehdi Date: Sat, 30 Sep 2023 22:42:44 +0500 Subject: [PATCH] Update command for PHP 7.0 --- .github/workflows/tests.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0d7f74fa..6bd8d7e0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -29,10 +29,15 @@ jobs: path: ${{ steps.composercache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} restore-keys: ${{ runner.os }}-composer- + - name: PHP 7.0 - Allow Plugin + if: "$PHP_VERSION" == "7.0" + env: + PHP_VERSION: ${{ matrix.php-versions }} + run: composer config --no-plugins allow-plugins.kylekatarnls/update-helper - name: Install Composer dependencies env: PHP_VERSION: ${{ matrix.php-versions }} - run: $(if [ "$PHP_VERSION" == "7.0" ]; then echo "composer config --no-plugins allow-plugins.kylekatarnls/update-helper &&"; fi;) composer install --no-progress --prefer-dist --optimize-autoloader + run: $(if [ "$PHP_VERSION" == "7.0" ]; then echo "composer install"; else echo "composer install --no-progress --prefer-dist --optimize-autoloader"; fi;) - name: Run tests with code coverage env: PHP_VERSION: ${{ matrix.php-versions }}