|
1 |
| -name: Quality |
| 1 | +name: Quality (PHPStan lvl 4) |
2 | 2 | on: push
|
3 | 3 | jobs:
|
4 | 4 | cs-fixer:
|
5 | 5 | runs-on: ubuntu-latest
|
6 | 6 | steps:
|
7 | 7 | - uses: actions/checkout@v2
|
| 8 | + - uses: shivammathur/setup-php@v2 |
| 9 | + with: |
| 10 | + php-version: '8.2' |
8 | 11 | - name: Cs-Fixer
|
9 | 12 | run: |
|
10 |
| - wget -q https://cs.symfony.com/download/php-cs-fixer-v2.phar -O php-cs-fixer |
| 13 | + wget -q https://cs.symfony.com/download/php-cs-fixer-v3.phar -O php-cs-fixer |
11 | 14 | chmod a+x php-cs-fixer
|
12 | 15 | PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix src --dry-run
|
13 | 16 |
|
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 |
| - |
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 | 17 | phpstan:
|
43 | 18 | runs-on: ubuntu-latest
|
44 | 19 | steps:
|
45 |
| - - uses: actions/checkout@v2 |
46 |
| - - uses: actions/cache@v2 |
| 20 | + - uses: actions/checkout@v3 |
| 21 | + - uses: actions/cache@v3 |
47 | 22 | with:
|
48 | 23 | path: '**/vendor'
|
49 | 24 | key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
|
50 | 25 | restore-keys: |
|
51 | 26 | ${{ runner.os }}-composer-
|
52 |
| - - uses: php-actions/composer@v5 |
| 27 | + - uses: php-actions/composer@v6 |
53 | 28 | with:
|
54 | 29 | args: --prefer-dist
|
55 |
| - php_version: 8.0 |
| 30 | + php_version: '8.2' |
56 | 31 |
|
57 | 32 | - name: PHPStan
|
58 |
| - uses: php-actions/phpstan@v2 |
| 33 | + uses: php-actions/phpstan@v3 |
59 | 34 | with:
|
60 | 35 | path: src/
|
61 |
| - args: --level=4 |
| 36 | + level: 4 |
0 commit comments