Skip to content

Commit

Permalink
Split coding standard from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed May 8, 2024
1 parent 44b1a3c commit 7029b03
Showing 1 changed file with 40 additions and 5 deletions.
45 changes: 40 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
if: matrix.symfony != ''
run: |
composer global config --no-plugins allow-plugins.symfony/flex true
composer global require --no-progress --no-scripts --no-plugins "symfony/flex:^1.10"
composer global require --no-progress --no-scripts --no-plugins "symfony/flex:^2.4"
composer config extra.symfony.require "${{ matrix.symfony }}"
-
Expand All @@ -65,13 +65,48 @@ jobs:
run: composer require --dev "twig/twig:${{ matrix.twig }}" --no-update --no-scripts

-
name: Install dependencies
run: composer update
name: Remove analyse dependencies
run: |
composer remove vimeo/psalm --no-update
composer remove sylius-labs/coding-standard --no-update
composer remove rector/rector --no-update
-
name: Run analysis
run: composer analyse
name: Install dependencies
run: composer update

-
name: Run tests
run: composer test

analyse:
runs-on: ubuntu-latest
name: "PHP Analyse"
strategy:
fail-fast: false

steps:
-
uses: actions/checkout@v2

-
name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.1"
coverage: none

-
name: Restrict Symfony version
run: |
composer global config --no-plugins allow-plugins.symfony/flex true
composer global require --no-progress --no-scripts --no-plugins "symfony/flex:^2.4"
composer config extra.symfony.require "6.4.*"
-
name: Install dependencies
run: composer update

-
name: Run analysis
run: composer analyse

0 comments on commit 7029b03

Please sign in to comment.