-
-
Notifications
You must be signed in to change notification settings - Fork 363
34 lines (27 loc) · 1.02 KB
/
PHPStan.yml
File metadata and controls
34 lines (27 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
## GitHub Actions Workflow template for PHPStan Testing.
## Uncomment this file to enable PHPStan testing on GitHub Actions.
# name: PHPStan
# on:
# push:
# branches: ['*'] # Apply to all branches. List specific branches if needed.
# pull_request:
# branches: ['*'] # Apply to all branches. List specific branches if needed.
# workflow_dispatch:
# jobs:
# PHPStan:
# strategy:
# fail-fast: false
# matrix:
# php_versions: ['8.1', '8.2', '8.3', '8.4', '8.5'] # PHP versions to test against
# runs-on: ubuntu-latest
# name: PHPStan - ${{ matrix.php_versions }}
# steps:
# - uses: actions/checkout@v4
# - name: Setup PHP, with composer and extensions
# uses: shivammathur/setup-php@v2
# with:
# php-version: ${{ matrix.php_versions }}
# - name: Install Dependencies
# run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
# - name: Run PHPStan
# run: vendor/bin/phpstan analyse