Skip to content

Commit c0bd411

Browse files
committed
Refactor PHPStan and PHPUnit GitHub Actions workflows for clarity and consistency
1 parent c9cd8e1 commit c0bd411

2 files changed

Lines changed: 302 additions & 302 deletions

File tree

.github/workflows/PHPStan.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
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.
33

4-
# name: PHPStan
4+
name: PHPStan
55

6-
# on:
6+
on:
77
# push:
88
# branches: ['*'] # Apply to all branches. List specific branches if needed.
99
# pull_request:
1010
# branches: ['*'] # Apply to all branches. List specific branches if needed.
11-
# workflow_dispatch:
11+
workflow_dispatch:
1212

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 }}
2121

22-
# steps:
23-
# - uses: actions/checkout@v4
22+
steps:
23+
- uses: actions/checkout@v4
2424

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 }}
2929

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
3232

33-
# - name: Run PHPStan
34-
# run: vendor/bin/phpstan analyse
33+
- name: Run PHPStan
34+
run: vendor/bin/phpstan analyse

0 commit comments

Comments
 (0)