clear coverage warning #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Merge | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
run: | |
name: Report coverage | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
operating-system: [ ubuntu-22.04 ] | |
php-versions: ['8.1'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
extensions: mbstring, intl, xdebug | |
- name: PHP Version | |
run: php -v | |
- name: Install dependencies | |
if: steps.composer-cache.outputs.cache-hit != 'true' | |
run: | | |
composer validate | |
composer install --prefer-dist --no-progress --no-suggest | |
- name: Test | |
run: vendor/bin/phpunit | |
- name: Report Coverage | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
composer check | |
composer global require php-coveralls/php-coveralls | |
export CODECOVERAGE=1 && vendor/bin/phpunit --coverage-clover=clover.xml | |
php-coveralls --coverage_clover=clover.xml -v |