From 59ead448e920a6bbd8ad1985d973c8533768ecf1 Mon Sep 17 00:00:00 2001 From: Younes ENNAJI Date: Sun, 23 Feb 2025 14:02:59 +0000 Subject: [PATCH] Wip --- .github/workflows/tests.yaml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index ab7a4e7b..62119809 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -17,7 +17,7 @@ jobs: matrix: php: [ 8.2 ] - name: ๐Ÿ˜ PHP ${{ matrix.php }} Static Analysis + name: php v${{ matrix.php }} steps: - name: ๐Ÿ“ฅ Checkout Code @@ -39,18 +39,19 @@ jobs: - name: ๐Ÿ“ฆ Install Dependencies run: | composer config --global allow-plugins true - composer install + composer install --no-interaction --prefer-dist --optimize-autoloader - name: ๐Ÿงน Run PHP CS Fixer (Code Style) - run: vendor/bin/php-cs-fixer fix --dry-run + run: vendor/bin/php-cs-fixer fix --dry-run --diff - name: ๐Ÿ” Run PHPStan (Static Analysis) - run: vendor/bin/phpstan analyse + run: vendor/bin/phpstan analyse --no-progress - name: ๐Ÿš€ Run PHPLint (Syntax Check) run: vendor/bin/phplint prime-test: + needs: static-analysis runs-on: ubuntu-latest strategy: fail-fast: false @@ -60,7 +61,7 @@ jobs: - { php: 8.3, phpunit: 10.5.* } - { php: 8.2, phpunit: 10.5.* } - name: ๐Ÿ˜ PHP ${{ matrix.php }} + name: php v${{ matrix.php }} steps: - name: ๐Ÿ“ฅ Checkout code @@ -84,7 +85,7 @@ jobs: sed -i '/"require": {/,/},/d; /"require-dev": {/,/},/d' composer.json composer config --global allow-plugins true composer require "phpunit/phpunit:${{ matrix.phpunit }}" "mockery/mockery" "psr/container" --no-interaction --no-update - composer update --prefer-lowest -W + composer update --prefer-lowest -W --no-interaction --prefer-dist --optimize-autoloader - name: โœ… Execute tests run: vendor/bin/phpunit --testsuite prime @@ -101,7 +102,7 @@ jobs: - { symfony: 7.1.*, php: 8.2, phpunit: 10.5.* } - { symfony: 7.0.*, php: 8.2, phpunit: 10.5.* } - name: ๐ŸŒ‰ Symfony ${{ matrix.symfony }} PHP ${{ matrix.php }} + name: symfony v${{ matrix.symfony }} php v${{ matrix.php }} steps: - name: ๐Ÿ“ฅ Checkout code @@ -126,7 +127,7 @@ jobs: composer config --global allow-plugins true composer config extra.symfony.require "${{ matrix.symfony }}" composer require "symfony/config:${{ matrix.symfony }}" "symfony/console:${{ matrix.symfony }}" "symfony/dependency-injection:${{ matrix.symfony }}" "symfony/framework-bundle:${{ matrix.symfony }}" "symfony/http-kernel:${{ matrix.symfony }}" "symfony/translation:${{ matrix.symfony }}" "symfony/twig-bundle:${{ matrix.symfony }}" "phpunit/phpunit:${{ matrix.phpunit }}" "mockery/mockery" "psr/container" "monolog/monolog" --no-interaction --no-update - composer update --prefer-lowest -W + composer update --prefer-lowest -W --no-interaction --prefer-dist --optimize-autoloader - name: โœ… Execute tests run: vendor/bin/phpunit --testsuite symfony @@ -141,7 +142,7 @@ jobs: - { laravel: 11.*, testbench: 9.*, php: 8.3, phpunit: 10.5.* } - { laravel: 11.*, testbench: 9.*, php: 8.2, phpunit: 10.5.* } - name: ๐Ÿ— Laravel ${{ matrix.laravel }} PHP ${{ matrix.php }} + name: laravel v${{ matrix.laravel }} php v${{ matrix.php }} steps: - name: ๐Ÿ“ฅ Checkout code @@ -166,7 +167,7 @@ jobs: sed -i '/\"require\": {/,/},/d; /\"require-dev\": {/,/},/d' composer.json composer config --global allow-plugins true composer require "laravel/framework:${{ matrix.laravel }}" "phpunit/phpunit:${{ matrix.phpunit }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update - composer update --prefer-lowest -W + composer update --prefer-lowest -W --no-interaction --prefer-dist --optimize-autoloader - name: โœ… Execute tests run: vendor/bin/phpunit --testsuite laravel