name: Code quality

on:
  [push, pull_request]

jobs:
    phpstan:
        name: PHPStan
        runs-on: ubuntu-latest

        steps:
            -   uses: actions/checkout@v3

            -   uses: shivammathur/setup-php@v2
                with:
                    php-version: 8.0
                    coverage: none

            -   name: Install Composer Dependencies
                uses: ramsey/composer-install@v1

            -   name: Run phpstan
                run: vendor/bin/phpstan analyse --no-progress

    codestyle:
        name: PHP codestyle
        runs-on: ubuntu-latest

        steps:
            -   uses: actions/checkout@v2

            -   uses: shivammathur/setup-php@v2
                with:
                    php-version: 8.0
                    coverage: none

            -   name: Install Composer Dependencies
                uses: ramsey/composer-install@v1

            -   name: Run php-cs-fixer
                run: vendor/bin/php-cs-fixer fix --dry-run --diff

name: Code quality

on:
  [push, pull_request]

jobs:
    phpstan:
        name: PHPStan
        runs-on: ubuntu-latest

        steps:
            -   uses: actions/checkout@v3

            -   uses: shivammathur/setup-php@v2
                with:
                    php-version: 8.0
                    coverage: none

            -   name: Install Composer Dependencies
                run: composer update --prefer-dist --no-progress

            -   name: Run phpstan
                run: vendor/bin/phpstan analyse --no-progress

    codestyle:
        name: PHP codestyle
        runs-on: ubuntu-latest

        steps:
            -   uses: actions/checkout@v3

            -   uses: shivammathur/setup-php@v2
                with:
                    php-version: 8.0
                    coverage: none

            -   name: Install Composer Dependencies
                run: composer update --prefer-dist --no-progress

            -   name: Run php-cs-fixer
                run: vendor/bin/php-cs-fixer fix --dry-run --diff

Update used actions to fix deprecation warnings
[AllBundles] Update used actions to fix deprecation warnings
