File tree Expand file tree Collapse file tree 3 files changed +44
-8
lines changed
Expand file tree Collapse file tree 3 files changed +44
-8
lines changed Original file line number Diff line number Diff line change 1+ name : Run code quality
2+
3+ on :
4+ push :
5+ branches : ["main"]
6+ pull_request :
7+ branches : ["main"]
8+
9+ permissions :
10+ contents : read
11+
12+ jobs :
13+ build :
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - uses : actions/checkout@v4
18+
19+ - name : Setup PHP with PECL extension
20+ uses : shivammathur/setup-php@v2
21+ with :
22+ php-version : " 8.4"
23+
24+ - name : Validate composer.json and composer.lock
25+ run : composer validate --strict
26+
27+ - name : Cache Composer packages
28+ id : composer-cache
29+ uses : actions/cache@v3
30+ with :
31+ path : vendor
32+ key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
33+ restore-keys : |
34+ ${{ runner.os }}-php-
35+
36+ - name : Install dependencies
37+ run : |
38+ composer install --prefer-dist --no-progress
39+
40+ - name : Run Mago
41+ run : |
42+ vendor/bin/mago fmt --dry-run
43+ vendor/bin/mago lint --reporting-format=github
Original file line number Diff line number Diff line change 22<phpunit
33 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
44 xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/10.2/phpunit.xsd"
5+ bootstrap =" vendor/autoload.php"
56 colors =" true"
67 displayDetailsOnTestsThatTriggerDeprecations =" true"
78 displayDetailsOnTestsThatTriggerErrors =" true"
89 displayDetailsOnTestsThatTriggerNotices =" true"
910 displayDetailsOnTestsThatTriggerWarnings =" true"
10- bootstrap =" ./tests/bootstrap.php"
1111 cacheDirectory =" .cache/phpunit"
1212>
1313 <testsuites >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments