File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed
Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ jobs :
10+ test :
11+ runs-on : ubuntu-latest
12+
13+ strategy :
14+ matrix :
15+ php-version : ['8.4']
16+
17+ name : PHP ${{ matrix.php-version }}
18+
19+ steps :
20+ - uses : actions/checkout@v4
21+
22+ - name : Setup PHP
23+ uses : shivammathur/setup-php@v2
24+ with :
25+ php-version : ${{ matrix.php-version }}
26+
27+ - name : Validate composer.json and composer.lock
28+ run : composer validate --strict
29+
30+ - name : Cache Composer packages
31+ id : composer-cache
32+ uses : actions/cache@v4
33+ with :
34+ path : vendor
35+ key : ${{ runner.os }}-php-${{ matrix.php-version }}-${{ hashFiles('**/composer.lock') }}
36+ restore-keys : |
37+ ${{ runner.os }}-php-${{ matrix.php-version }}-
38+
39+ - name : Install dependencies
40+ run : composer install --prefer-dist --no-progress
41+
42+ - name : Check composer.json normalization
43+ run : composer normalize --diff --dry-run
44+
45+ - name : Run PHP CS Fixer
46+ run : vendor/bin/php-cs-fixer check --diff
47+
48+ - name : Run PHPStan
49+ run : vendor/bin/phpstan analyse
50+
You can’t perform that action at this time.
0 commit comments