Skip to content

Update coverage reports #7

Update coverage reports

Update coverage reports #7

Workflow file for this run

name: PHP CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: PHP 8.0
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0' # Set the PHP version
coverage: xdebug
- name: Install dependencies
run: composer install --dev --prefer-dist --no-progress
- name: Run PHPUnit tests
run: vendor/bin/phpunit --coverage-clover=coverage.xml
- name: Run PHPStan tests
run: vendor/bin/phpstan.phar analyse src --memory-limit=512M
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
file: ./coverage.xml
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}