Skip to content

Commit 488f601

Browse files
committed
GHA: Add phpstan
1 parent d2bb0f0 commit 488f601

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,24 @@ on: [push]
44

55
jobs:
66
test:
7-
runs-on: ubuntu-latest
87
strategy:
98
matrix:
10-
php_version:
9+
php:
1110
- "8.0"
1211
- "8.1"
12+
runs-on: ubuntu-latest
13+
name: PHP ${{ matrix.php }}
1314
steps:
1415
- uses: actions/checkout@v2
1516
- uses: php-actions/composer@v6
1617
with:
17-
php_version: ${{ matrix.php_version }}
18+
php_version: ${{ matrix.php }}
19+
- uses: php-actions/phpstan@v3
20+
with:
21+
php_version: ${{ matrix.php }}
22+
path: src/
1823
- uses: php-actions/phpunit@v3
1924
with:
20-
php_version: ${{ matrix.php_version }}
25+
php_version: ${{ matrix.php }}
2126
php_extensions: pcov
2227
- run: bash <(curl -s https://codecov.io/bash)

0 commit comments

Comments
 (0)