Skip to content

run tests and create code coverage #9

run tests and create code coverage

run tests and create code coverage #9

Workflow file for this run

name: tests
run-name: run tests and create code coverage
on: [push]
jobs:
test-php83:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Install composer and dependencies
uses: php-actions/composer@v6
- name: PHPUnit Tests
uses: php-actions/phpunit@v3
env:
XDEBUG_MODE: coverage
with:
bootstrap: vendor/autoload.php
configuration: phpunit.xml
php_version: 8.3
php_extensions: xdebug
args: tests --coverage-clover ./coverage.xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}