Skip to content

test: add more tests #8

test: add more tests

test: add more tests #8

Workflow file for this run

name: Run coveralls
on:
push:
branches:
- main
paths-ignore:
- 'README.md'
- 'LICENSE'
- 'CHANGELOG.md'
jobs:
phpunit:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
coverage: xdebug
- name: Install dependencies
run: composer install --no-progress --no-suggest --prefer-dist
- name: Configure Xdebug
run: echo "xdebug.mode=coverage" >> $GITHUB_ENV
- name: Run PHPUnit
run: vendor/bin/phpunit --coverage-clover=coverage.xml
- name: Send coverage to Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage.xml