diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 8ca4387bbfb68239a2c724a789d785c9eb6692a3..98c9c344eca0511cf8758265f783395efe364d1a 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -22,6 +22,7 @@ jobs: with: php-version: ${{ matrix.php-versions }} extensions: mbstring, mysql, pdo, pdo_sqlite, xml + tools: composer:v2 coverage: pcov - name: Setup problem matchers for PHP @@ -52,7 +53,7 @@ jobs: run: composer validate - name: Install Composer dependencies - run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader + run: composer install --no-progress --prefer-dist --optimize-autoloader - name: Syntax check PHP run: bash vendor/bin/check-syntax-php.sh @@ -83,6 +84,7 @@ jobs: with: php-version: '7.4' extensions: mbstring, xml + tools: composer:v2 coverage: none - name: Setup problem matchers for PHP @@ -102,13 +104,13 @@ jobs: restore-keys: ${{ runner.os }}-composer- - name: Install Composer dependencies - run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader + run: composer install --no-progress --prefer-dist --optimize-autoloader - name: Security check for locked dependencies uses: symfonycorp/security-checker-action@v2 - name: Update Composer dependencies - run: composer update --no-progress --no-suggest --prefer-dist --optimize-autoloader + run: composer update --no-progress --prefer-dist --optimize-autoloader - name: Security check for updated dependencies uses: symfonycorp/security-checker-action@v2 @@ -123,6 +125,7 @@ jobs: with: php-version: '7.4' extensions: mbstring, xml + tools: composer:v2 coverage: none - name: Setup problem matchers for PHP @@ -142,7 +145,7 @@ jobs: restore-keys: ${{ runner.os }}-composer- - name: Install Composer dependencies - run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader + run: composer install --no-progress --prefer-dist --optimize-autoloader - name: Syntax check YAML / XML / JSON run: | @@ -160,6 +163,7 @@ jobs: uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php with: php-version: '7.4' + tools: composer:v2 extensions: mbstring, xml - name: Setup problem matchers for PHP @@ -179,7 +183,7 @@ jobs: restore-keys: ${{ runner.os }}-composer- - name: Install Composer dependencies - run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader + run: composer install --no-progress --prefer-dist --optimize-autoloader - uses: actions/download-artifact@v1 with: