From 0b1750068f76f45ed36363f2b20703f01c732d07 Mon Sep 17 00:00:00 2001 From: Natalia Pozhidaeva Date: Mon, 29 Jan 2024 22:44:26 -0500 Subject: [PATCH] [#238] Add codecov run to PR creation --- .github/workflows/codecov.yml | 3 +++ .simplecov | 23 ++++++++++------------- README.md | 2 +- 3 files changed, 14 insertions(+), 14 deletions(-) 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..5934d93 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 = if Gem.win_platform? + SimpleCov::Formatter::MultiFormatter[ SimpleCov::Formatter::HTMLFormatter ] - SimpleCov.start do - add_filter '/test/' - add_filter '/features/' - end -else - SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new( + else + SimpleCov::Formatter::MultiFormatter.new( SimpleCov::Formatter::HTMLFormatter ) - SimpleCov.start do - add_filter '/test/' - add_filter '/features/' - minimum_coverage 90 - end + 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)