Skip to content

Commit

Permalink
Merge b82998d into 170bbe9
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoocasali committed Aug 15, 2023
2 parents 170bbe9 + b82998d commit b9aabbe
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Expand Up @@ -32,6 +32,10 @@ jobs:
run: docker run -d -p 7700:7700 getmeili/meilisearch:latest meilisearch --master-key=masterKey --no-analytics
- name: Run test suite
run: bundle exec rspec
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

linter_check:
name: linter-check
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -11,6 +11,7 @@ group :development, :test do
gem 'byebug'
gem 'rspec', '~> 3.0'
gem 'simplecov'
gem 'codecov'

# Used only for testing, none of the classes are exposed to the public API.
gem 'jwt'
Expand Down
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -17,6 +17,9 @@
<p align="center">
<a href="https://badge.fury.io/rb/meilisearch"><img src="https://badge.fury.io/rb/meilisearch.svg" alt="Latest Stable Version"></a>
<a href="https://github.com/meilisearch/meilisearch-ruby/actions"><img src="https://github.com/meilisearch/meilisearch-ruby/workflows/Tests/badge.svg" alt="Test"></a>
<a href="https://codecov.io/gh/meilisearch/meilisearch-ruby">
<img src="https://codecov.io/github/meilisearch/meilisearch-ruby/coverage.svg?branch=main" alt="Codecov">
</a>
<a href="https://github.com/meilisearch/meilisearch-ruby/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-informational" alt="License"></a>
<a href="https://ms-bors.herokuapp.com/repositories/6"><img src="https://bors.tech/images/badge_small.svg" alt="Bors enabled"></a>
</p>
Expand Down
3 changes: 3 additions & 0 deletions spec/spec_helper.rb
Expand Up @@ -20,8 +20,11 @@
# it won't be able to track your files and their coverage!
# The SimpleCov.start must be issued before any of your application code is required!
require 'simplecov'
require 'codecov'

SimpleCov.start do
add_filter %r{^/spec/}
formatter SimpleCov::Formatter::Codecov if ENV['CI']
end

require 'meilisearch'
Expand Down

0 comments on commit b9aabbe

Please sign in to comment.