Skip to content

Commit 9050ddc

Browse files
authored
Merge pull request #3 from facile-it/codecov
Use codecov
2 parents 2dd6a0e + 0195077 commit 9050ddc

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,14 @@ jobs:
111111

112112
- name: "Run PHPCS check"
113113
run: "composer cs-check"
114-
if: "${{ matrix.php-version == '7.4' }}"
114+
if: "${{ matrix.coverage == 'true' }}"
115115

116116
- name: "Run PHPUnit with coverage"
117-
run: "vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover=coverage.xml"
117+
run: "vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover=coverage-report.xml"
118118
if: "${{ matrix.coverage == 'true' }}"
119119

120-
- name: "Upload coverage"
121-
run: "wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover ./coverage.xml"
120+
- name: Upload code coverage
121+
uses: codecov/codecov-action@v1
122+
with:
123+
file: coverage-report.xml
122124
if: "${{ matrix.coverage == 'true' }}"

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
A library to validate JWT tokens.
44

55
[![Build Status](https://github.com/facile-it/php-jose-verifier/workflows/Continuous%20Integration/badge.svg?branch=master)](https://github.com/facile-it/php-jose-verifier/actions)
6-
[![Code Coverage](https://scrutinizer-ci.com/g/facile-it/php-jose-verifier/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/facile-it/php-jose-verifier/?branch=master)
7-
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/facile-it/php-jose-verifier/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/facile-it/php-jose-verifier/?branch=master)
6+
[![codecov](https://codecov.io/gh/facile-it/php-jose-verifier/branch/master/graph/badge.svg?token=1RHS0NWD2L)](https://codecov.io/gh/facile-it/php-jose-verifier)
87
[![Latest Stable Version](https://poser.pugx.org/facile-it/php-jose-verifier/v/stable)](https://packagist.org/packages/facile-it/php-jose-verifier)
98
[![Total Downloads](https://poser.pugx.org/facile-it/php-jose-verifier/downloads)](https://packagist.org/packages/facile-it/php-jose-verifier)
109
[![Latest Unstable Version](https://poser.pugx.org/facile-it/php-jose-verifier/v/unstable)](https://packagist.org/packages/facile-it/php-jose-verifier)

0 commit comments

Comments
 (0)