Skip to content

Merge pull request #396 from MiguelRoot/master #668

Merge pull request #396 from MiguelRoot/master

Merge pull request #396 from MiguelRoot/master #668

Workflow file for this run

name: UnitTests and CodeCoverage
on: [push]
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Composer dependencies
run: composer install
- name: Run Testsuite
run: vendor/bin/phpunit
code-coverages:
runs-on: ubuntu-latest
needs: unit-tests
if: github.ref == 'refs/heads/master'
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Composer dependencies
run: composer install
- name: Run Testsuite
run: php -d xdebug.mode=coverage vendor/bin/phpunit --coverage-clover=coverage.xml
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage.xml