From 1ff9a8f198f4e133c63563d772c8d2b22217447e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pysiak?= Date: Tue, 5 Nov 2024 11:42:17 +0100 Subject: [PATCH] Refactor CI --- .github/workflows/build.yml | 11 ++++++++--- composer.json | 6 ------ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2bd7be1f..983f07b1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -165,14 +165,19 @@ jobs: name: Load fixtures in test application run: (cd tests/Application && bin/console sylius:fixtures:load -n) + - + name: Validate composer.json + run: composer validate --ansi --strict --no-check-all +# Restore before InvoicingPlugin 1.0 release +# run: composer validate --ansi --strict --no-check-publish + - name: Run security check run: symfony security:check - - name: Run analysis - run: composer analyse - if: matrix.sylius != '~1.12.0' + name: Run PHPStan + run: vendor/bin/phpstan analyse -c phpstan.dist.neon -l max src/ - name: Run PHPSpec diff --git a/composer.json b/composer.json index 27f11fd5..7183fd59 100644 --- a/composer.json +++ b/composer.json @@ -65,12 +65,6 @@ } }, "scripts": { - "analyse": [ - "vendor/bin/phpstan analyse -c phpstan.neon -l max" - ], - "fix": [ - "vendor/bin/ecs check --fix src/ spec/" - ], "auto-scripts": { "cache:clear": "symfony-cmd", "assets:install %PUBLIC_DIR%": "symfony-cmd"