Skip to content

Commit f4302dc

Browse files
committed
Use latest php-coveralls version through setup-php to upload coverage and suggest it during installation instead
1 parent 199e9c5 commit f4302dc

3 files changed

Lines changed: 24 additions & 850 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ jobs:
206206
with:
207207
php-version: ${{ matrix.php-version }}
208208
extensions: ${{ env.php-extensions }}
209+
tools: php-coveralls:^2.5.2
209210
env:
210211
fail-fast: true
211212
- name: 📥 Download coverage data

composer.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
"mockery/mockery": "^1.4",
2727
"roave/security-advisories": "dev-latest",
2828
"elephox/composer-module-sync": "^1.1",
29-
"phpbench/phpbench": "^1.2.1",
30-
"php-coveralls/php-coveralls": "^2.5"
29+
"phpbench/phpbench": "^1.2.1"
3130
},
3231
"provide": {
3332
"psr/container-implementation": "1.0",
@@ -44,6 +43,9 @@
4443
"elephox/support": "self.version",
4544
"elephox/text": "self.version"
4645
},
46+
"suggest": {
47+
"php-coveralls/php-coveralls": "To submit coverage reports to Coveralls.io"
48+
},
4749
"extra": {
4850
"branch-alias": {
4951
"dev-main": "1.x-dev"
@@ -131,7 +133,7 @@
131133
],
132134
"ci:publish-coverage": [
133135
"@putenv XDEBUG_MODE=off",
134-
"vendor/bin/php-coveralls -x build/coverage/clover.xml -o build/coverage/coveralls-upload.json -v"
136+
"php-coveralls -x build/coverage/clover.xml -o build/coverage/coveralls-upload.json -v"
135137
]
136138
}
137139
}

0 commit comments

Comments
 (0)