From 1dd2bc6f02d3d388007b93cf72f50fc7a8f41848 Mon Sep 17 00:00:00 2001 From: Fabien Villepinte Date: Fri, 15 Oct 2021 15:11:38 +0200 Subject: [PATCH] Validate composer.lock strictly (#10160) --- .github/workflows/continuous-integration.yml | 24 ++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 88b8698f9..21e583cc6 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -132,3 +132,27 @@ jobs: - name: "Run complete test suite on 7.3" if: "matrix.php-version == '7.3'" run: "vendor/bin/simple-phpunit --configuration tests/complete.phpunit.xml" + + validation: + name: "Composer validation" + + runs-on: ubuntu-latest + + steps: + - name: "Checkout" + uses: "actions/checkout@v2" + + - name: "Install PHP" + uses: "shivammathur/setup-php@v2" + with: + coverage: "none" + extensions: "intl, zip" + ini-values: "memory_limit=-1, phar.readonly=0, error_reporting=E_ALL, display_errors=On" + php-version: "7.4" + tools: composer + + - name: "Install dependencies" + run: "composer install ${{ env.COMPOSER_FLAGS }}" + + - name: "Validate composer.json" + run: "bin/composer validate --strict"