Skip to content

clear coverage warning #13

clear coverage warning

clear coverage warning #13

Workflow file for this run

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