From db0515e826198ca5a77212c9a183c3648c269a62 Mon Sep 17 00:00:00 2001 From: Nicolas CARPi Date: Wed, 7 Dec 2022 23:14:28 +0100 Subject: [PATCH] fix versions in github workflow and add a lint-ci command --- .github/workflows/test.yml | 4 ++-- composer.json | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c5f4c48..835c821 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,7 +10,7 @@ jobs: strategy: matrix: - php-version: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1'] + php-version: ['8.1'] steps: - uses: actions/checkout@v2 @@ -24,5 +24,5 @@ jobs: - uses: ramsey/composer-install@v1 - - run: composer lint + - run: composer lint-ci - run: composer test diff --git a/composer.json b/composer.json index 588702e..32421de 100644 --- a/composer.json +++ b/composer.json @@ -41,6 +41,9 @@ "lint": [ "php-cs-fixer fix -v" ], + "lint-ci": [ + "php-cs-fixer fix -v --dry-run --stop-on-violation" + ], "test": [ "XDEBUG_MODE=coverage phpunit" ]