Skip to content

Commit d2a0385

Browse files
committed
Code coverage
1 parent 0c891d0 commit d2a0385

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/actions.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,10 @@ jobs:
7373
run: composer install --prefer-dist --no-scripts --no-progress --no-suggest
7474

7575
- name: Run PHPUnit
76-
run: vendor/bin/phpunit
76+
run: vendor/bin/phpunit --coverage-clover=coverage.xml
77+
78+
- name: Upload coverage to Codecov
79+
uses: codecov/codecov-action@v3
80+
with:
81+
files: coverage.xml
82+
fail_ci_if_error: true

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
[![PHP Pipeline](https://github.com/zeroSal/php-seven/actions/workflows/actions.yaml/badge.svg?branch=main)](https://github.com/zeroSal/php-seven/actions/workflows/actions.yaml)
22

3+
[![codecov](https://codecov.io/gh/zeroSal/php-seven/branch/main/graph/badge.svg)](https://codecov.io/gh/zeroSal/php-seven)
4+
35
# php-seven
46
PHP `ISO/OSI` layer 7 protocols adapters library.
57

0 commit comments

Comments
 (0)