We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3b9549 commit 223c727Copy full SHA for 223c727
.github/workflows/coverage.yml
@@ -0,0 +1,34 @@
1
+name: Coverage
2
+
3
+on:
4
+ push:
5
+ branches: [ master ]
6
7
+jobs:
8
+ run:
9
+ runs-on: ubuntu-latest
10
11
+ steps:
12
+ - name: Checkout
13
+ uses: actions/checkout@v2
14
15
+ - name: Setup PHP
16
+ uses: shivammathur/setup-php@v2
17
+ with:
18
+ php-version: '7.2'
19
+ coverage: xdebug
20
21
+ - name: Install dependencies
22
+ run: composer update --prefer-dist --no-progress
23
24
+ - name: Run PHPUnit test suite
25
+ run: ./vendor/bin/phpunit --configuration ./tests/phpunit.xml
26
27
+ - name: Update code coverage badge
28
+ uses: timkrase/[email protected]
29
30
+ report: ./tests/clover.xml
31
+ report_type: clover
32
+ coverage_badge_path: ./.github/coverage.svg
33
+ push_badge: true
34
+ repo_token: ${{ secrets.GITHUB_TOKEN }}
0 commit comments