Allow for Psalm and ECS to run on all builds
This commit is contained in:
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@@ -39,10 +39,6 @@ jobs:
|
||||
- name: Validate composer.json
|
||||
run: composer validate --strict
|
||||
|
||||
- name: Remove analysis dependencies
|
||||
run: composer remove --dev --no-update sylius-labs/coding-standard
|
||||
if: matrix.symfony-version == '6.0.*'
|
||||
|
||||
- name: Install dependencies
|
||||
run: composer install --prefer-dist --no-progress
|
||||
env:
|
||||
@@ -50,7 +46,6 @@ jobs:
|
||||
|
||||
- name: Run coding standard
|
||||
run: vendor/bin/ecs check --ansi --no-progress-bar src tests
|
||||
if: matrix.symfony-version != '6.0.*'
|
||||
|
||||
- name: Run Psalm
|
||||
run: vendor/bin/psalm src --no-progress --php-version="${{ matrix.php-version }}"
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
"friends-of-behat/mink-extension": "^2.5",
|
||||
"friends-of-behat/page-object-extension": "^0.3.2",
|
||||
"friends-of-behat/service-container-extension": "^1.1",
|
||||
"sylius-labs/coding-standard": "^3.2",
|
||||
"sylius-labs/coding-standard": "^4.1.1",
|
||||
"symfony/browser-kit": "^4.4 || ^5.1 || ^6.0",
|
||||
"symfony/framework-bundle": "^4.4 || ^5.1 || ^6.0",
|
||||
"symfony/process": "^4.4 || ^5.1 || ^6.0",
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
imports:
|
||||
- { resource: 'vendor/sylius-labs/coding-standard/easy-coding-standard.yml' }
|
||||
9
ecs.php
Normal file
9
ecs.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
|
||||
return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
$containerConfigurator->import(__DIR__ . '/vendor/sylius-labs/coding-standard/ecs.php');
|
||||
};
|
||||
Reference in New Issue
Block a user