|  | 
| 1 |  | -name: Quality | 
|  | 1 | +name: Quality (PHPStan level 4) | 
| 2 | 2 | on: push | 
| 3 | 3 | jobs: | 
| 4 |  | -    cs-fixer: | 
| 5 |  | -        runs-on: ubuntu-latest | 
| 6 |  | -        steps: | 
| 7 |  | -            -   uses: actions/checkout@v2 | 
| 8 |  | -            -   name: Cs-Fixer | 
| 9 |  | -                run: | | 
| 10 |  | -                    wget -q https://cs.symfony.com/download/php-cs-fixer-v2.phar -O php-cs-fixer | 
| 11 |  | -                    chmod a+x php-cs-fixer | 
| 12 |  | -                    PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix src --dry-run | 
|  | 4 | +  cs-fixer: | 
|  | 5 | +    runs-on: ubuntu-latest | 
|  | 6 | +    steps: | 
|  | 7 | +      - uses: actions/checkout@v2 | 
|  | 8 | +      - name: Cs-Fixer | 
|  | 9 | +        run: | | 
|  | 10 | +            wget -q https://cs.symfony.com/download/php-cs-fixer-v2.phar -O php-cs-fixer | 
|  | 11 | +            chmod a+x php-cs-fixer | 
|  | 12 | +            PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix src --dry-run | 
| 13 | 13 | 
 | 
| 14 |  | -    phpunit: | 
| 15 |  | -        runs-on: ubuntu-latest | 
| 16 |  | -        steps: | 
| 17 |  | -            -   uses: actions/checkout@v2 | 
| 18 |  | -            -   uses: shivammathur/setup-php@v2 | 
| 19 |  | -                with: | 
| 20 |  | -                    php-version: '8.0' | 
| 21 |  | -                    tools: composer:v2 | 
| 22 |  | -                    coverage: pcov | 
| 23 |  | -            -   uses: actions/cache@v2 | 
| 24 |  | -                with: | 
| 25 |  | -                    path: '**/vendor' | 
| 26 |  | -                    key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | 
| 27 |  | -                    restore-keys: | | 
| 28 |  | -                        ${{ runner.os }}-composer- | 
| 29 |  | -            -   uses: php-actions/composer@v5 | 
| 30 |  | -                with: | 
| 31 |  | -                    args: --prefer-dist | 
| 32 |  | -                    php_version: 8.0 | 
|  | 14 | +  phpunit: | 
|  | 15 | +    runs-on: ubuntu-latest | 
|  | 16 | +    steps: | 
|  | 17 | +      - uses: actions/checkout@v2 | 
|  | 18 | +      - uses: shivammathur/setup-php@v2 | 
|  | 19 | +        with: | 
|  | 20 | +          php-version: '8.0' | 
|  | 21 | +          tools: composer:v2 | 
|  | 22 | +          coverage: pcov | 
|  | 23 | +      - uses: actions/cache@v2 | 
|  | 24 | +        with: | 
|  | 25 | +          path: '**/vendor' | 
|  | 26 | +          key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | 
|  | 27 | +          restore-keys: | | 
|  | 28 | +            ${{ runner.os }}-composer- | 
|  | 29 | +      - uses: php-actions/composer@v5 | 
|  | 30 | +        with: | 
|  | 31 | +          args: --prefer-dist | 
|  | 32 | +          php_version: 8.0 | 
|  | 33 | +      - name: Run tests & generate Coverage | 
|  | 34 | +        run: bin/phpunit --configuration=phpunit.xml tests --coverage-html var/coverage --whitelist=src | 
|  | 35 | +      - name: Store coverage files | 
|  | 36 | +        uses: actions/upload-artifact@v2 | 
|  | 37 | +        with: | 
|  | 38 | +          path: var/coverage | 
| 33 | 39 | 
 | 
| 34 |  | -            -   name: Run tests & generate Coverage | 
| 35 |  | -                run: bin/phpunit --configuration=phpunit.xml tests --coverage-html var/coverage --whitelist=src | 
| 36 |  | - | 
| 37 |  | -            -   name: Store coverage files | 
| 38 |  | -                uses: actions/upload-artifact@v2 | 
| 39 |  | -                with: | 
| 40 |  | -                    path: var/coverage | 
| 41 |  | - | 
| 42 |  | -    phpstan: | 
| 43 |  | -        runs-on: ubuntu-latest | 
| 44 |  | -        steps: | 
| 45 |  | -            -   uses: actions/checkout@v2 | 
| 46 |  | -            -   uses: actions/cache@v2 | 
| 47 |  | -                with: | 
| 48 |  | -                    path: '**/vendor' | 
| 49 |  | -                    key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | 
| 50 |  | -                    restore-keys: | | 
| 51 |  | -                        ${{ runner.os }}-composer- | 
| 52 |  | -            -   uses: php-actions/composer@v5 | 
| 53 |  | -                with: | 
| 54 |  | -                    args: --prefer-dist | 
| 55 |  | -                    php_version: 8.0 | 
| 56 |  | - | 
| 57 |  | -            -   name: PHPStan | 
| 58 |  | -                uses: php-actions/phpstan@v2 | 
| 59 |  | -                with: | 
| 60 |  | -                    path: src/ | 
| 61 |  | -                    args: --level=4 | 
|  | 40 | +  phpstan: | 
|  | 41 | +    runs-on: ubuntu-latest | 
|  | 42 | +    steps: | 
|  | 43 | +      - uses: actions/checkout@v2 | 
|  | 44 | +      - uses: actions/cache@v2 | 
|  | 45 | +        with: | 
|  | 46 | +          path: '**/vendor' | 
|  | 47 | +          key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | 
|  | 48 | +          restore-keys: | | 
|  | 49 | +            ${{ runner.os }}-composer- | 
|  | 50 | +      - uses: php-actions/composer@v5 | 
|  | 51 | +        with: | 
|  | 52 | +          args: --prefer-dist | 
|  | 53 | +          php_version: 8.0 | 
|  | 54 | +      - name: PHPStan | 
|  | 55 | +        uses: php-actions/phpstan@v2 | 
|  | 56 | +        with: | 
|  | 57 | +          path: src/ | 
|  | 58 | +          level: 4 | 
|  | 59 | +          php_version: 8.0 | 
0 commit comments