Skip to content

Commit

Permalink
Devops/coverage (#11)
Browse files Browse the repository at this point in the history
* Create coverage.yml

* Update coverage.yml
  • Loading branch information
LaravelFreelancerNL authored Aug 29, 2020
1 parent 023278c commit c340222
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Test Coverage

on: [workflow_dispatch, push, pull_request]

jobs:
run:
runs-on: ubuntu-18.04
name: Test coverage
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.2'
extensions: mbstring, intl
ini-values: post_max_size=256M, short_open_tag=On
coverage: xdebug

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest

- name: Test coverage
run: |
vendor/bin/phpunit --coverage-clover clover.xml --whitelist src
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover clover.xml

0 comments on commit c340222

Please sign in to comment.