|
9 | 9 |
|
10 | 10 | steps: |
11 | 11 | - name: Checkout code |
12 | | - uses: actions/checkout@v2 |
| 12 | + uses: actions/checkout@v3 |
13 | 13 |
|
14 | | - - name: PHPStan |
15 | | - uses: docker://oskarstark/phpstan-ga:1.4.6 |
16 | | - env: |
17 | | - REQUIRE_DEV: true |
| 14 | + - name: Setup PHP |
| 15 | + uses: shivammathur/setup-php@v2 |
18 | 16 | with: |
19 | | - args: analyze --no-progress |
| 17 | + php-version: '8.0' |
| 18 | + coverage: none |
| 19 | + |
| 20 | + - name: Download dependencies |
| 21 | + run: composer install --no-interaction --no-progress |
| 22 | + |
| 23 | + - name: Download PHPStan |
| 24 | + run: composer bin phpstan install --no-interaction --no-progress |
| 25 | + |
| 26 | + - name: Execute PHPStan |
| 27 | + run: vendor/bin/phpstan analyze --no-progress |
20 | 28 |
|
21 | 29 | php-cs-fixer: |
22 | 30 | name: PHP-CS-Fixer |
23 | 31 | runs-on: ubuntu-latest |
24 | 32 |
|
25 | 33 | steps: |
26 | 34 | - name: Checkout code |
27 | | - uses: actions/checkout@v2 |
| 35 | + uses: actions/checkout@v3 |
| 36 | + |
| 37 | + - name: Setup PHP |
| 38 | + uses: shivammathur/setup-php@v2 |
| 39 | + with: |
| 40 | + php-version: '8.0' |
| 41 | + coverage: none |
| 42 | + |
| 43 | + - name: Download dependencies |
| 44 | + run: composer install --no-interaction --no-progress |
| 45 | + |
| 46 | + - name: Download PHP CS Fixer |
| 47 | + run: composer bin php-cs-fixer install --no-interaction --no-progress |
| 48 | + |
| 49 | + - name: Execute PHP CS Fixer |
| 50 | + run: vendor/bin/php-cs-fixer fix --diff --dry-run |
| 51 | + |
| 52 | + psalm: |
| 53 | + name: Psalm |
| 54 | + runs-on: ubuntu-latest |
| 55 | + |
| 56 | + steps: |
| 57 | + - name: Checkout code |
| 58 | + uses: actions/checkout@v3 |
28 | 59 |
|
29 | | - - name: PHP-CS-Fixer |
30 | | - uses: docker://oskarstark/php-cs-fixer-ga:3.4.0 |
| 60 | + - name: Setup PHP |
| 61 | + uses: shivammathur/setup-php@v2 |
31 | 62 | with: |
32 | | - args: --dry-run --diff |
| 63 | + php-version: '8.0' |
| 64 | + coverage: none |
| 65 | + |
| 66 | + - name: Download dependencies |
| 67 | + run: composer install --no-interaction --no-progress |
| 68 | + |
| 69 | + - name: Download Psalm |
| 70 | + run: composer bin psalm install --no-interaction --no-progress |
| 71 | + |
| 72 | + - name: Execute Psalm |
| 73 | + run: vendor/bin/psalm.phar --no-progress --output-format=github |
0 commit comments