Skip to content

Commit 4faff77

Browse files
committed
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.... Includes updating the version constraint to reference the latest release of the package.
1 parent 7128ba4 commit 4faff77

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,13 @@ jobs:
104104
- name: Run the unit tests with code coverage
105105
run: composer coverage
106106

107+
# Global install is used to prevent a conflict with the local composer.lock in PHP 8.0+.
107108
- name: Install Coveralls
108109
if: ${{ success() }}
109-
run: composer require php-coveralls/php-coveralls:"^2.5.2" --no-interaction
110+
run: composer global require php-coveralls/php-coveralls:"^2.5.3" --no-interaction
110111

111112
- name: Upload coverage results to Coveralls
112113
if: ${{ success() }}
113114
env:
114115
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
115-
run: vendor/bin/php-coveralls -v -x build/logs/clover.xml
116+
run: php-coveralls -v -x build/logs/clover.xml

0 commit comments

Comments
 (0)