Skip to content

Commit

Permalink
Merge branch 'feature/code-coverage' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
titouanmathis committed Nov 23, 2020
2 parents 1aaf6bd + 2f542c9 commit 01d8159
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ on:
push:
branches:
- master
- develop
pull_request:

name: Tests
Expand Down Expand Up @@ -79,4 +80,14 @@ jobs:
composer_version: 1

- name: Pest
run: ./vendor/bin/pest
run: ./vendor/bin/pest --coverage --coverage-clover='coverage.xml'

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests
fail_ci_if_error: true
path_to_write_report: ./codecov_report.txt
verbose: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
# Ignore directories generated by Composer
/composer.phar
/vendor/
coverage.xml
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![Packagist Version](https://img.shields.io/github/v/release/studiometa/wp-toolkit?include_prereleases&label=packagist&style=flat-square)](https://packagist.org/packages/studiometa/wp)
[![License MIT](https://img.shields.io/packagist/l/studiometa/wp-toolkit?style=flat-square)](https://packagist.org/packages/studiometa/wp)
[![Codecov](https://img.shields.io/codecov/c/github/studiometa/wp-toolkit?style=flat-square)](https://codecov.io/gh/studiometa/wp-toolkit/)

> A PHP toolkit to boost your WordPress development! 🚀
Expand Down

0 comments on commit 01d8159

Please sign in to comment.