diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index f8fab3c..4ed0ad0 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,12 +10,8 @@ jobs: uses: ruby/setup-ruby@v1 with: ruby-version: 3.2 - - uses: amancevice/setup-code-climate@v0 - with: - cc_test_reporter_id: ${{ secrets.CC_TEST_REPORTER_ID }} - - run: cc-test-reporter before-build + bundler-cache: true - name: Build and test with RSpec - run: | - bundle install --jobs 4 --retry 3 - bundle exec rspec - - run: cc-test-reporter after-build + run: bundle exec rspec + env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index f845b29..d7e0471 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ### 1.0.1 (Next) +* [#53](https://github.com/dblock/ruby-enum/pull/53): Replace code climate with coveralls - [@dblock](https://github.com/dblock). * Your contribution here. ### 1.0.0 (2023/01/10) diff --git a/Gemfile b/Gemfile index a2a9cd5..3ce44a3 100644 --- a/Gemfile +++ b/Gemfile @@ -18,5 +18,5 @@ group :development, :test do end group :test do - gem 'simplecov', require: false + gem 'coveralls_reborn', require: false end diff --git a/README.md b/README.md index 49ab445..98261f9 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Ruby::Enum [![Gem Version](http://img.shields.io/gem/v/ruby-enum.svg)](http://badge.fury.io/rb/ruby-enum) [![Build Status](https://github.com/dblock/ruby-enum/workflows/test/badge.svg?branch=master)](https://github.com/dblock/ruby-enum/actions) -[![Code Climate](https://codeclimate.com/github/dblock/ruby-enum.svg)](https://codeclimate.com/github/dblock/ruby-enum) +[![Coverage Status](https://coveralls.io/repos/github/dblock/ruby-enum/badge.svg?branch=master)](https://coveralls.io/github/dblock/ruby-enum?branch=master) Enum-like behavior for Ruby, heavily inspired by [this](http://www.rubyfleebie.com/enumerations-and-ruby), and improved upon [another blog post](http://code.dblock.org/how-to-define-enums-in-ruby). diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 38a174f..bdc51a2 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -4,8 +4,8 @@ require 'rubygems' -require 'simplecov' -SimpleCov.start +require 'coveralls' +Coveralls.wear! require 'rspec' require 'ruby-enum'