|
1 | | -## GitHub Actions Workflow template for PHPStan Testing. |
2 | | -## Uncomment this file to enable PHPStan testing on GitHub Actions. |
| 1 | +# GitHub Actions Workflow template for PHPStan Testing. |
| 2 | +# Uncomment the "on" section below to enable PHPStan testing on GitHub Actions on push. |
3 | 3 |
|
4 | | -# name: PHPStan |
| 4 | +name: PHPStan |
5 | 5 |
|
6 | | -# on: |
| 6 | +on: |
7 | 7 | # push: |
8 | 8 | # branches: ['*'] # Apply to all branches. List specific branches if needed. |
9 | 9 | # pull_request: |
10 | 10 | # branches: ['*'] # Apply to all branches. List specific branches if needed. |
11 | | -# workflow_dispatch: |
| 11 | + workflow_dispatch: |
12 | 12 |
|
13 | | -# jobs: |
14 | | -# PHPStan: |
15 | | -# strategy: |
16 | | -# fail-fast: false |
17 | | -# matrix: |
18 | | -# php_versions: ['8.1', '8.2', '8.3', '8.4', '8.5'] # PHP versions to test against |
19 | | -# runs-on: ubuntu-latest |
20 | | -# name: PHPStan - ${{ matrix.php_versions }} |
| 13 | +jobs: |
| 14 | + PHPStan: |
| 15 | + strategy: |
| 16 | + fail-fast: false |
| 17 | + matrix: |
| 18 | + php_versions: ['8.1', '8.2', '8.3', '8.4', '8.5'] # PHP versions to test against |
| 19 | + runs-on: ubuntu-latest |
| 20 | + name: PHPStan - ${{ matrix.php_versions }} |
21 | 21 |
|
22 | | -# steps: |
23 | | -# - uses: actions/checkout@v4 |
| 22 | + steps: |
| 23 | + - uses: actions/checkout@v4 |
24 | 24 |
|
25 | | -# - name: Setup PHP, with composer and extensions |
26 | | -# uses: shivammathur/setup-php@v2 |
27 | | -# with: |
28 | | -# php-version: ${{ matrix.php_versions }} |
| 25 | + - name: Setup PHP, with composer and extensions |
| 26 | + uses: shivammathur/setup-php@v2 |
| 27 | + with: |
| 28 | + php-version: ${{ matrix.php_versions }} |
29 | 29 |
|
30 | | -# - name: Install Dependencies |
31 | | -# run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist |
| 30 | + - name: Install Dependencies |
| 31 | + run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist |
32 | 32 |
|
33 | | -# - name: Run PHPStan |
34 | | -# run: vendor/bin/phpstan analyse |
| 33 | + - name: Run PHPStan |
| 34 | + run: vendor/bin/phpstan analyse |
0 commit comments