Skip to content

Commit

Permalink
chore: implement support for codecov
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Schönlaub <manuel.schoenlaub@gmail.com>
  • Loading branch information
mschoenlaub committed Sep 9, 2023
1 parent 914e943 commit c0d31d3
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 14 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ jobs:
- run: bundle install
- name: RSpec
run: bundle exec rspec
- name: Upload coverage to Codecov
uses: codecov/codecov-action@398b9de041a7e69750d45077b10c5912201a3466
with:
fail_ci_if_error: true
verbose: true
file: coverage/coverage.xml
rubocop:
name: Rubocop
runs-on: ubuntu-latest
Expand Down
10 changes: 10 additions & 0 deletions .simplecov
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# frozen_string_literal: true

SimpleCov.start do
add_filter "/spec/"
if ENV["CI"] == "true"
formatter SimpleCov::Formatter::CoberturaFormatter
else
formatter SimpleCov::Formatter::HTMLFormatter
end
end
42 changes: 28 additions & 14 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,31 @@ GEM
ast (2.4.2)
concurrent-ruby (1.2.2)
diff-lcs (1.5.0)
json (2.6.2)
markly (0.7.0)
parallel (1.22.1)
parser (3.1.2.1)
docile (1.4.0)
json (2.6.3)
markly (0.10.0)
parallel (1.23.0)
parser (3.2.2.3)
ast (~> 2.4.1)
racc
racc (1.7.1)
rainbow (3.1.1)
rake (13.0.6)
regexp_parser (2.6.0)
rexml (3.2.5)
regexp_parser (2.8.1)
rexml (3.2.6)
rspec (3.12.0)
rspec-core (~> 3.12.0)
rspec-expectations (~> 3.12.0)
rspec-mocks (~> 3.12.0)
rspec-core (3.12.0)
rspec-core (3.12.2)
rspec-support (~> 3.12.0)
rspec-expectations (3.12.0)
rspec-expectations (3.12.3)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-mocks (3.12.0)
rspec-mocks (3.12.6)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-support (3.12.0)
rspec-support (3.12.1)
rubocop (1.37.1)
json (~> 2.3)
parallel (~> 1.10)
Expand All @@ -41,10 +44,19 @@ GEM
rubocop-ast (>= 1.23.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.23.0)
parser (>= 3.1.1.0)
ruby-progressbar (1.11.0)
unicode-display_width (2.3.0)
rubocop-ast (1.29.0)
parser (>= 3.2.1.0)
ruby-progressbar (1.13.0)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-cobertura (2.1.0)
rexml
simplecov (~> 0.19)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.4)
unicode-display_width (2.4.2)

PLATFORMS
arm64-darwin-21
Expand All @@ -63,6 +75,8 @@ DEPENDENCIES
rake (~> 13.0)
rspec (~> 3.12.0)
rubocop (~> 1.37.1)
simplecov (~> 0.22.0)
simplecov-cobertura (~> 2.1.0)

BUNDLED WITH
2.3.25
2 changes: 2 additions & 0 deletions openfeature-sdk.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,6 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "rake", "~> 13.0"
spec.add_development_dependency "rspec", "~> 3.12.0"
spec.add_development_dependency "rubocop", "~> 1.37.1"
spec.add_development_dependency "simplecov", "~> 0.22.0"
spec.add_development_dependency "simplecov-cobertura", "~> 2.1.0"
end
3 changes: 3 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# frozen_string_literal: true

require "simplecov"
require "simplecov-cobertura"

require "openfeature/sdk"

require "markly"
Expand Down

0 comments on commit c0d31d3

Please sign in to comment.