File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 63
63
64
64
- name : Run unit tests
65
65
run : composer phpunit
66
+
67
+ coverage :
68
+ needs : test
69
+ runs-on : ubuntu-latest
70
+
71
+ steps :
72
+ - name : Checkout code
73
+ uses : actions/checkout@v2
74
+
75
+ - name : Setup PHP
76
+ uses : shivammathur/setup-php@v2
77
+ with :
78
+ php-version : ' 7.4'
79
+ ini-values : zend.assertions=1, error_reporting=-1, display_errors=On
80
+ coverage : xdebug
81
+
82
+ - name : Install Composer dependencies - normal
83
+ uses : " ramsey/composer-install@v2"
84
+
85
+ - name : Run the unit tests with code coverage
86
+ run : composer coverage
87
+
88
+ - name : Install Coveralls
89
+ if : ${{ success() }}
90
+ run : composer require php-coveralls/php-coveralls:"^2.5.2" --no-interaction
91
+
92
+ - name : Upload coverage results to Coveralls
93
+ if : ${{ success() }}
94
+ env :
95
+ COVERALLS_REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
96
+ run : vendor/bin/php-coveralls -v -x build/logs/clover.xml
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ PHP Console Color
5
5
[ ![ CS] ( https://github.com/php-parallel-lint/PHP-Console-Color/actions/workflows/cs.yml/badge.svg )] ( https://github.com/php-parallel-lint/PHP-Console-Color/actions/workflows/cs.yml )
6
6
[ ![ Test] ( https://github.com/php-parallel-lint/PHP-Console-Color/actions/workflows/test.yml/badge.svg )] ( https://github.com/php-parallel-lint/PHP-Console-Color/actions/workflows/test.yml )
7
7
[ ![ License] ( https://poser.pugx.org/php-parallel-lint/php-console-color/license.svg )] ( https://packagist.org/packages/php-parallel-lint/php-console-color )
8
+ [ ![ Coverage Status] ( https://coveralls.io/repos/github/php-parallel-lint/PHP-Console-Color/badge.svg?branch=coveralls )] ( https://coveralls.io/github/php-parallel-lint/PHP-Console-Color?branch=coveralls )
8
9
9
10
Simple library for creating colored console ouput.
10
11
You can’t perform that action at this time.
0 commit comments