diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index c3b385e..f85e212 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -4,6 +4,9 @@ on: push: branches: - master + pull_request: + branches: + - master jobs: codecov: runs-on: ubuntu-22.04 diff --git a/.simplecov b/.simplecov index 282adf3..76099de 100644 --- a/.simplecov +++ b/.simplecov @@ -18,21 +18,18 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -if Gem.win_platform? - SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ - SimpleCov::Formatter::HTMLFormatter - ] - SimpleCov.start do - add_filter '/test/' - add_filter '/features/' - end -else - SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new( - SimpleCov::Formatter::HTMLFormatter - ) - SimpleCov.start do - add_filter '/test/' - add_filter '/features/' - minimum_coverage 90 - end +SimpleCov.formatter = if Gem.win_platform? + SimpleCov::Formatter::MultiFormatter[ + SimpleCov::Formatter::HTMLFormatter + ] + else + SimpleCov::Formatter::MultiFormatter.new( + SimpleCov::Formatter::HTMLFormatter + ) + end + +SimpleCov.start do + add_filter '/test/' + add_filter '/features/' + minimum_coverage 90 end diff --git a/README.md b/README.md index 506254a..27289f4 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![rake](https://github.com/cqfn/pdd/actions/workflows/rake.yml/badge.svg)](https://github.com/cqfn/pdd/actions/workflows/rake.yml) [![PDD status](http://www.0pdd.com/svg?name=cqfn/pdd)](http://www.0pdd.com/p?name=cqfn/pdd) -[![codecov](https://codecov.io/gh/cqfn/pdd/branch/master/graph/badge.svg)](https://codecov.io/gh/cqfn/pdd) +[![codecov](https://codecov.io/gh/yegor256/pdd/branch/master/graph/badge.svg)](https://codecov.io/gh/yegor/pdd) [![Hits-of-Code](https://hitsofcode.com/github/cqfn/pdd)](https://hitsofcode.com/view/github/cqfn/pdd) [![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/cqfn/pdd/blob/master/LICENSE.txt) [![Gem Version](https://badge.fury.io/rb/pdd.svg)](http://badge.fury.io/rb/pdd)