File tree Expand file tree Collapse file tree 2 files changed +33
-1
lines changed Expand file tree Collapse file tree 2 files changed +33
-1
lines changed Original file line number Diff line number Diff line change 27
27
- ' 7.1'
28
28
- ' 7.2'
29
29
- ' 7.3'
30
- - ' 7.4'
30
+ # PHP 7.4 is tested in coverage section
31
31
32
32
steps :
33
33
- name : Checkout code
52
52
53
53
- name : ' Check var dump on own code'
54
54
run : ./var-dump-check src
55
+
56
+ coverage :
57
+ needs : test
58
+ runs-on : ubuntu-latest
59
+
60
+ steps :
61
+ - name : Checkout code
62
+ uses : actions/checkout@v2
63
+
64
+ - name : Setup PHP
65
+ uses : shivammathur/setup-php@v2
66
+ with :
67
+ php-version : ' 7.4'
68
+ ini-values : zend.assertions=1, error_reporting=-1, display_errors=On
69
+ coverage : xdebug
70
+
71
+ - name : Install Composer dependencies - normal
72
+ uses : " ramsey/composer-install@v2"
73
+
74
+ - name : Run the unit tests with code coverage
75
+ run : ./vendor/bin/phpunit
76
+
77
+ - name : Install Coveralls
78
+ if : ${{ success() }}
79
+ run : composer require php-coveralls/php-coveralls:"^2.5.2" --no-interaction
80
+
81
+ - name : Upload coverage results to Coveralls
82
+ if : ${{ success() }}
83
+ env :
84
+ COVERALLS_REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
85
+ run : vendor/bin/php-coveralls -v -x build/logs/clover.xml
Original file line number Diff line number Diff line change @@ -82,3 +82,4 @@ or setting for ANT:
82
82
[ ![ Build Status] ( https://github.com/php-parallel-lint/PHP-Var-Dump-Check/actions/workflows/test.yml/badge.svg )] ( https://github.com/php-parallel-lint/PHP-Var-Dump-Check/actions/workflows/test.yml )
83
83
[ ![ Downloads this Month] ( https://img.shields.io/packagist/dm/php-parallel-lint/php-var-dump-check.svg )] ( https://packagist.org/packages/php-parallel-lint/php-var-dump-check )
84
84
[ ![ Latest stable] ( https://img.shields.io/packagist/v/php-parallel-lint/php-var-dump-check.svg )] ( https://packagist.org/packages/php-parallel-lint/php-var-dump-check )
85
+ [ ![ Coverage Status] ( https://coveralls.io/repos/github/php-parallel-lint/php-var-dump-check/badge.svg?branch=master )] ( https://coveralls.io/github/php-parallel-lint/php-var-dump-check?branch=master )
You can’t perform that action at this time.
0 commit comments