Skip to content

Merge pull request #58 from laravel-shift/l10-compatibility #9

Merge pull request #58 from laravel-shift/l10-compatibility

Merge pull request #58 from laravel-shift/l10-compatibility #9

Workflow file for this run

name: Unit test coverage
on:
- push
- pull_request
jobs:
tests:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
name: Unit test coverage
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
tools: composer:v2
coverage: pcov
- name: Install dependencies
run: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
- name: Execute tests
run: vendor/bin/phpunit --verbose --coverage-text --coverage-clover=coverage.clover
- name: Send coverage to Scrutinizer
run: |
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage.clover