From d302719ef130df6c39f4b67329829d03e285438e Mon Sep 17 00:00:00 2001 From: Thomas von Deyen Date: Thu, 7 Mar 2024 08:36:39 +0100 Subject: [PATCH] Use Codecov for coverage reports --- .github/workflows/build_test.yml | 13 ++++++++----- README.md | 3 +-- alchemy_cms.gemspec | 1 + 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 8298f84872..eab97ec3d5 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -98,12 +98,15 @@ jobs: - name: Prepare database run: | bundle exec rake alchemy:spec:prepare - - name: Run tests & publish code coverage - uses: paambaati/codeclimate-action@v3.2.0 - env: - CC_TEST_REPORTER_ID: bca4349e32f97919210ac8a450b04904b90683fcdd57d65a22c0f5065482bc22 + - name: Run tests + run: | + bundle exec rspec + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4 with: - coverageCommand: bundle exec rspec + token: ${{ secrets.CODECOV_TOKEN }} + slug: AlchemyCMS/alchemy_cms + file: ./coverage/.resultset.json - uses: actions/upload-artifact@v4 if: failure() with: diff --git a/README.md b/README.md index f4d738fa0a..646f274d7d 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,7 @@ [![Brakeman Scan](https://github.com/AlchemyCMS/alchemy_cms/actions/workflows/brakeman-analysis.yml/badge.svg)](https://github.com/AlchemyCMS/alchemy_cms/actions/workflows/brakeman-analysis.yml) [![Gem Version](https://badge.fury.io/rb/alchemy_cms.svg)](https://badge.fury.io/rb/alchemy_cms) -[![Maintainability](https://api.codeclimate.com/v1/badges/196c56c56568ed24a697/maintainability)](https://codeclimate.com/github/AlchemyCMS/alchemy_cms/maintainability) -[![Test Coverage](https://api.codeclimate.com/v1/badges/196c56c56568ed24a697/test_coverage)](https://codeclimate.com/github/AlchemyCMS/alchemy_cms/test_coverage) +[![codecov](https://codecov.io/gh/AlchemyCMS/alchemy_cms/graph/badge.svg?token=uUHQGfB2xe)](https://codecov.io/gh/AlchemyCMS/alchemy_cms) [![Lint](https://github.com/AlchemyCMS/alchemy_cms/actions/workflows/lint.yml/badge.svg)](https://github.com/AlchemyCMS/alchemy_cms/actions/workflows/lint.yml) [![Depfu](https://badges.depfu.com/badges/ebe56d2dd7b7044a8ae700cc81212a8e/overview.svg)](https://depfu.com/github/AlchemyCMS/alchemy_cms?project_id=4600) diff --git a/alchemy_cms.gemspec b/alchemy_cms.gemspec index 766b8b30f9..cfc3da0798 100644 --- a/alchemy_cms.gemspec +++ b/alchemy_cms.gemspec @@ -62,6 +62,7 @@ Gem::Specification.new do |gem| gem.add_development_dependency "rspec-activemodel-mocks", ["~> 1.0"] gem.add_development_dependency "rspec-rails", [">= 4.0.0.beta2"] gem.add_development_dependency "simplecov", ["~> 0.20"] + gem.add_development_dependency "simplecov-cobertura", ["~> 2.1"] gem.add_development_dependency "selenium-webdriver", ["~> 4.10"] gem.add_development_dependency "webmock", ["~> 3.3"] gem.add_development_dependency "shoulda-matchers", ["~> 6.0"]