Skip to content

Commit 195afa5

Browse files
committed
Fixed the PHPStan Github Actions
1 parent 6761db2 commit 195afa5

File tree

4 files changed

+35
-33
lines changed

4 files changed

+35
-33
lines changed

.github/workflows/phpstan-5.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ jobs:
2020
uses: php-actions/phpstan@v2
2121
with:
2222
path: src/
23-
args: --level=5
23+
level: 4
24+
php_version: 8.0

.github/workflows/phpstan-7.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ jobs:
2020
uses: php-actions/phpstan@v2
2121
with:
2222
path: src/
23-
args: --level=7
23+
level: 7
24+
php_version: 8.0

.github/workflows/phpstan-8.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ jobs:
2020
uses: php-actions/phpstan@v2
2121
with:
2222
path: src/
23-
args: --level=8
23+
level: 8
24+
php_version: 8.0

.github/workflows/quality.yaml

Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,33 @@
11
name: Quality (PHPStan level 4)
22
on: push
33
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
1313
14-
phpstan:
15-
runs-on: ubuntu-latest
16-
steps:
17-
- uses: actions/checkout@v2
18-
- uses: actions/cache@v2
19-
with:
20-
path: '**/vendor'
21-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
22-
restore-keys: |
23-
${{ runner.os }}-composer-
24-
- uses: php-actions/composer@v5
25-
with:
26-
args: --prefer-dist
27-
php_version: 8.0
28-
29-
- name: PHPStan
30-
uses: php-actions/phpstan@v2
31-
with:
32-
path: src/
33-
level: 4
34-
php_version: 8.0
14+
phpstan:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: actions/cache@v2
19+
with:
20+
path: '**/vendor'
21+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
22+
restore-keys: |
23+
${{ runner.os }}-composer-
24+
- uses: php-actions/composer@v5
25+
with:
26+
args: --prefer-dist
27+
php_version: 8.0
28+
- name: PHPStan
29+
uses: php-actions/phpstan@v2
30+
with:
31+
path: src/
32+
level: 4
33+
php_version: 8.0

0 commit comments

Comments
 (0)