File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : " CI"
2+
3+ on :
4+ pull_request :
5+ workflow_dispatch :
6+
7+ jobs :
8+ phpunit :
9+ name : " PHPUnit"
10+ runs-on : " ubuntu-22.04"
11+
12+ strategy :
13+ matrix :
14+ php-version :
15+ - " 8.1"
16+ - " 8.2"
17+ - " 8.3"
18+ dependencies :
19+ - " highest"
20+ include :
21+ - dependencies : " lowest"
22+ php-version : " 8.1"
23+
24+ steps :
25+ - name : " Checkout"
26+ uses : " actions/checkout@v4"
27+ with :
28+ fetch-depth : 2
29+
30+ - name : " Install PHP"
31+ uses : " shivammathur/setup-php@v2"
32+ with :
33+ php-version : " ${{ matrix.php-version }}"
34+ coverage : " pcov"
35+ ini-values : " zend.assertions=1"
36+
37+ - name : " Install dependencies with Composer"
38+ uses : " ramsey/composer-install@v2"
39+ with :
40+ dependency-versions : " ${{ matrix.dependencies }}"
41+
42+ - name : " Run PHPUnit"
43+ run : " vendor/bin/phpunit --coverage-clover=coverage.xml"
44+
45+ - name : " Upload coverage file"
46+ uses : " actions/upload-artifact@v4"
47+ with :
48+ name : " phpunit-${{ matrix.dependencies }}-${{ matrix.php-version }}.coverage"
49+ path : " coverage.xml"
50+
51+ upload_coverage :
52+ name : " Upload coverage to Coveralls"
53+ runs-on : " ubuntu-22.04"
54+ needs :
55+ - " phpunit"
56+
57+ steps :
58+ - name : " Checkout"
59+ uses : " actions/checkout@v4"
60+ with :
61+ fetch-depth : 2
62+
63+ - name : " Download coverage files"
64+ uses : " actions/download-artifact@v4"
65+ with :
66+ path : " reports"
67+
68+ - name : " Upload to Coveralls"
69+ uses : coverallsapp/github-action@v2
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1414 "ext-bcmath" : " *"
1515 },
1616 "require-dev" : {
17- "php-coveralls/php-coveralls" : " ^2.5" ,
18- "phpunit/phpunit" : " ^9.0"
17+ "phpunit/phpunit" : " ^9.6"
1918 },
2019 "autoload" : {
2120 "psr-4" : {
You can’t perform that action at this time.
0 commit comments