Skip to content

Commit eeb7135

Browse files
committed
Fix small things in readme
1 parent f227ab2 commit eeb7135

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff 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)

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
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

910
This library provides some interfaces and a basic implementation of a State Engine or State Machine.
1011

0 commit comments

Comments
 (0)