-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (27 loc) · 946 Bytes
/
coverage.yml
File metadata and controls
34 lines (27 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Coverage
on:
push:
branches: [ master ]
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.2'
coverage: xdebug
- name: Install dependencies
run: composer update --prefer-dist --no-progress
- name: Run PHPUnit test suite
run: ./vendor/bin/phpunit
- name: Update code coverage badge
uses: timkrase/phpunit-coverage-badge@v1.2.0
with:
report: ./clover.xml
report_type: clover
coverage_badge_path: ./.github/coverage.svg
push_badge: true
repo_token: ${{ secrets.GITHUB_TOKEN }}