Skip to content

Commit

Permalink
Merge c883178 into 2f6d939
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzedge committed May 9, 2023
2 parents 2f6d939 + c883178 commit c306b14
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 9 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/ruby.yml
Expand Up @@ -71,4 +71,12 @@ jobs:
ruby-version: 3.2.2
bundler-cache: true
- name: Report rspec test coverage to coveralls.io
run: COVERALLS_REPO_TOKEN=${{ secrets.COVERALLS_REPO_TOKEN }} bundle exec rspec
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: bundle exec rspec
- name: Report rspec test coverage to codeclimate.com
uses: paambaati/codeclimate-action@v4.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: bundle exec rspec
2 changes: 1 addition & 1 deletion spec/lib/rambling/trie/container_spec.rb
Expand Up @@ -323,7 +323,7 @@
context 'with compressed node' do
before { container.compress! }

it_behaves_like 'a matching container#words_within?'
it_behaves_like 'a non-matching container#words_within?'
end
end

Expand Down
20 changes: 13 additions & 7 deletions spec/spec_helper.rb
@@ -1,15 +1,21 @@
# frozen_string_literal: true

require 'yaml'
require 'simplecov'
require 'coveralls'

SimpleCov.formatters = [
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter,
]
if ENV.has_key? 'COVERALLS_REPO_TOKEN'
require 'coveralls'

Coveralls.wear! do
add_filter '/spec/'
SimpleCov.formatters = [
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter,
]

Coveralls.wear! do
add_filter '/spec/'
end
else
SimpleCov.start
end

require 'rspec'
Expand Down

0 comments on commit c306b14

Please sign in to comment.