Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Commit

Permalink
#2 Setup Codecov for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieu-ducrot committed Jun 25, 2021
1 parent 72ef65e commit 2a60013
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ jobs:
- name: Qualimetry
run: make qa

# —— Test 🧪 ————————————————————————————————————————————————————————————
- name: Phpunit test and coverage
run: make phpunit-coverage
# —— Tests 🧪 ————————————————————————————————————————————————————————————
- name: Phpunit tests
run: XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-clover coverage.xml
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v1
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
[![License](http://poser.pugx.org/smartbooster/parameter-bundle/license)](https://packagist.org/packages/smartbooster/parameter-bundle)

![CI workflow](https://github.com/smartbooster/parameter-bundle/actions/workflows/ci.yml/badge.svg)
[![codecov](https://codecov.io/gh/smartbooster/parameter-bundle/branch/master/graph/badge.svg?token=QQZPRVXGL8)](https://codecov.io/gh/smartbooster/parameter-bundle)

## Installation

Expand Down

0 comments on commit 2a60013

Please sign in to comment.