Skip to content

Commit 74e3b3d

Browse files
authored
Improve workflow
1 parent c3c7b0a commit 74e3b3d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,37 @@ on: [push, pull_request]
44

55
jobs:
66
build:
7+
name: PHP ${{ matrix.php }}
78
runs-on: ubuntu-latest
89
if: "!contains(github.event.head_commit.message, '[ci skip]')"
910
strategy:
11+
fail-fast: false
1012
matrix:
1113
php: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
12-
name: PHP ${{ matrix.php }}
14+
15+
1316
steps:
1417
- uses: actions/checkout@v4
18+
1519
- name: Setup PHP
1620
uses: shivammathur/[email protected]
1721
with:
1822
php-version: ${{ matrix.php }}
1923
ini-values: xdebug.max_nesting_level=3000
24+
2025
- name: Cache Composer packages
2126
id: composer-cache
2227
uses: actions/cache@v4
2328
with:
2429
path: "~/.composer/cache"
2530
key: "php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}"
2631
restore-keys: "php-${{ matrix.php }}-composer-"
32+
2733
- name: Install dependencies
2834
run: composer install --prefer-dist --no-interaction
35+
2936
- name: Run PHPStan
3037
run: ./vendor/bin/phpstan analyze --no-progress
38+
3139
- name: Run PHPUnit
3240
run: ./vendor/bin/phpunit --bootstrap vendor/autoload.php --fail-on-warning tests/phpunit

0 commit comments

Comments
 (0)