Skip to content

Add code coverage

Add code coverage #6

Workflow file for this run

name: Test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Test
env:
XDEBUG_MODE: coverage
run: vendor/bin/phpunit --coverage-clover coverage.xml tests
- name: Upload coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}