Skip to content

Commit 6270149

Browse files
authored
GH Actions: various tweaks / fix code coverage (#291)
* GH Actions: used a named branch for coverallsapp The `coverallsapp/github-action` action runner has (finally) created a named branch for the 1.x series, so let's use that. Ref: coverallsapp/github-action#100 * GH Actions: fix CI Grrr.... When PHPUnit has been installed on a high PHP version, some of the dependencies of PHPUnit will now be installed in versions not compatible with PHP 7.4, which blocks the install of the Coveralls package. Installing PHP Coveralls globally instead should fix it. I just wish PHP Coveralls would finally release a version compatible with PHP > 8.0.... --------- Co-authored-by: jrfnl <[email protected]>
1 parent 0f25a37 commit 6270149

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,25 +198,26 @@ jobs:
198198
php-version: 7.4
199199
coverage: none
200200

201+
# Global install is used to prevent a conflict with the local composer.lock in PHP 8.0+.
201202
- name: Install Coveralls
202203
if: ${{ success() }}
203-
run: composer require php-coveralls/php-coveralls:"^2.5.2" --no-interaction --with-all-dependencies
204+
run: composer global require php-coveralls/php-coveralls:"^2.5.3" --no-interaction --with-all-dependencies
204205

205206
- name: Upload coverage results to Coveralls
206207
if: ${{ success() }}
207208
env:
208209
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
209210
COVERALLS_PARALLEL: true
210211
COVERALLS_FLAG_NAME: php-${{ matrix.php }}-phpcs-${{ matrix.phpcs_version }}
211-
run: vendor/bin/php-coveralls -v -x build/logs/clover.xml
212+
run: php-coveralls -v -x build/logs/clover.xml
212213

213214
coveralls-finish:
214215
needs: coverage
215216
runs-on: ubuntu-latest
216217

217218
steps:
218219
- name: Coveralls Finished
219-
uses: coverallsapp/github-action@master
220+
uses: coverallsapp/github-action@v1
220221
with:
221222
github-token: ${{ secrets.GITHUB_TOKEN }}
222223
parallel-finished: true

0 commit comments

Comments
 (0)