File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed
Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -13,22 +13,29 @@ jobs:
1313 runs-on : ubuntu-latest
1414 strategy :
1515 matrix :
16- php : ['7.4', '8.0']
16+ php : [ '7.4', '8.0' ]
1717
1818 steps :
1919 - name : Set up PHP
2020 uses : shivammathur/setup-php@v2
2121 with :
2222 php-version : ${{ matrix.php }}
23- coverage : none
23+ coverage : xdebug2
2424
2525 - name : Checkout code
2626 uses : actions/checkout@v2
27+ with :
28+ fetch-depth : 2
2729
2830 - name : Download dependencies
2931 uses : ramsey/composer-install@v1
3032 with :
3133 composer-options : --no-interaction --prefer-dist --optimize-autoloader
3234
3335 - name : Run tests
34- run : ./vendor/bin/phpunit
36+ run : ./vendor/bin/phpunit --coverage-clover coverage.xml
37+
38+ - name : Upload to Codecov
39+ env :
40+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
41+ run : bash <(curl -s https://codecov.io/bash)
Original file line number Diff line number Diff line change 11# State Engine / Machine (PHP)
22
33[ ![ CI] ( https://github.com/uuf6429/state-engine-php/actions/workflows/ci.yml/badge.svg )] ( https://github.com/uuf6429/state-engine-php/actions/workflows/ci.yml )
4+ [ ![ codecov] ( https://codecov.io/gh/uuf6429/state-engine-php/branch/main/graph/badge.svg )] ( https://codecov.io/gh/uuf6429/state-engine-php )
45[ ![ Minimum PHP Version] ( https://img.shields.io/badge/php-%5E7.4%20%7C%20%5E8-8892BF.svg )] ( https://php.net/ )
5- [ ![ License] ( http ://poser.pugx.org/uuf6429/state-engine/license)] ( https://packagist.org/packages/uuf6429/state-engine )
6- [ ![ Latest Stable Version] ( http ://poser.pugx.org/uuf6429/state-engine/v )] ( https://packagist.org/packages/uuf6429/state-engine )
7- [ ![ Latest Unstable Version] ( http ://poser.pugx.org/uuf6429/state-engine/v/unstable)] ( https://packagist.org/packages/uuf6429/state-engine )
6+ [ ![ License] ( https ://poser.pugx.org/uuf6429/state-engine/license)] ( https://packagist.org/packages/uuf6429/state-engine )
7+ [ ![ Latest Stable Version] ( https ://poser.pugx.org/uuf6429/state-engine/version )] ( https://packagist.org/packages/uuf6429/state-engine )
8+ [ ![ Latest Unstable Version] ( https ://poser.pugx.org/uuf6429/state-engine/v/unstable)] ( https://packagist.org/packages/uuf6429/state-engine )
89
910This library provides some interfaces and a basic implementation of a State Engine or State Machine.
1011
You can’t perform that action at this time.
0 commit comments