Skip to content

Commit

Permalink
Merge pull request #253 from PHPCSStandards/feature/ghactions-upgrade…
Browse files Browse the repository at this point in the history
…-php-coveralls-2.6.0

GH Actions: update for php-coveralls 2.6.0
  • Loading branch information
jrfnl committed Jul 16, 2023
2 parents 474e767 + 48bf93b commit dd63fe7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,18 +168,18 @@ jobs:
- name: Run the unit tests with code coverage
run: composer coverage

# Uploading the results with PHP Coveralls v1 won't work from GH Actions, so switch the PHP version.
- name: Switch to PHP 7.4
if: ${{ success() && matrix.php != '7.4' }}
# PHP Coveralls v2 (which supports GH Actions) has a PHP 5.5 minimum, so switch the PHP version.
- name: Switch to PHP latest
if: ${{ success() && matrix.php == '5.4' }}
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
php-version: 'latest'
coverage: none

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

- name: Upload coverage results to Coveralls (normal)
if: ${{ success() && github.actor != 'dependabot[bot]' }}
Expand Down

0 comments on commit dd63fe7

Please sign in to comment.