File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : PHP Composer
22
33on :
4- push :
5- branches : [ "master" ]
6- pull_request :
7- branches : [ "master" ]
4+ push :
5+ branches : ["master"]
6+ pull_request :
7+ branches : ["master"]
88
99permissions :
10- contents : read
10+ contents : read
1111
1212jobs :
13- build :
14-
15- runs-on : ubuntu-latest
16-
17- steps :
18- - uses : actions/checkout@v3
19-
20- - name : Validate composer.json and composer.lock
21- run : composer validate --strict
22-
23- - name : Cache Composer packages
24- id : composer-cache
25- uses : actions/cache@v3
26- with :
27- path : vendor
28- key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
29- restore-keys : |
30- ${{ runner.os }}-php-
31-
32- - name : Install dependencies
33- run : composer install --prefer-dist --no-progress
34-
35- # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
36- # Docs: https://getcomposer.org/doc/articles/scripts.md
37-
38- # - name: Run test suite
39- # run: composer run-script test
13+ build :
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - uses : actions/checkout@v4
18+
19+ - name : Validate composer.json and composer.lock
20+ run : composer validate --strict
21+
22+ - name : Cache Composer packages
23+ id : composer-cache
24+ uses : actions/cache@v4
25+ with :
26+ path : vendor
27+ key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
28+ restore-keys : |
29+ ${{ runner.os }}-php-
30+
31+ - name : Install dependencies
32+ uses : php-actions/composer@v6
33+ with :
34+ php_version : " 8.2"
35+
36+ - name : Run tests
37+ uses : php-actions/composer@v6
38+ with :
39+ command : test
40+ php_version : " 8.2"
41+ php_extensions : xdebug
Original file line number Diff line number Diff line change 1010 <directory >tests</directory >
1111 </testsuite >
1212 </testsuites >
13- <coverage >
14- <report >
15- <html outputDirectory =" build/coverage" />
16- <text outputFile =" build/coverage.txt" />
17- <clover outputFile =" build/logs/clover.xml" />
18- </report >
19- </coverage >
13+
2014 <logging >
2115 <junit outputFile =" build/report.junit.xml" />
2216 </logging >
17+
2318 <source >
2419 <include >
2520 <directory suffix =" .php" >./src</directory >
You can’t perform that action at this time.
0 commit comments