Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added simplecov github action in unit.yml #2267

Merged
merged 10 commits into from
Sep 30, 2021
6 changes: 6 additions & 0 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ jobs:
env:
RAILS_ENV: test
working-directory: src/supermarket
- name: Simplecov Report
uses: aki77/simplecov-report-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
failedThreshold: 90
resultPath: src/supermarket/coverage/.last_run.json

fieri:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions src/supermarket/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ group :test do
gem "vcr", require: false
gem "webmock", require: false
gem "puma"
gem "simplecov", require: false
end

group :development, :test do
Expand Down
10 changes: 9 additions & 1 deletion src/supermarket/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ GEM
descendants_tracker (0.0.4)
thread_safe (~> 0.3, >= 0.3.1)
diff-lcs (1.3)
docile (1.4.0)
domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0)
dotenv (2.7.6)
Expand Down Expand Up @@ -656,6 +657,12 @@ GEM
sidekiq-cron (1.2.0)
fugit (~> 1.1)
sidekiq (>= 4.2.1)
simplecov (0.21.2)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.3)
sitemap_generator (6.1.2)
builder (~> 3.0)
spring (2.1.1)
Expand Down Expand Up @@ -846,6 +853,7 @@ DEPENDENCIES
shoulda-matchers
sidekiq (~> 4.2)
sidekiq-cron
simplecov
sitemap_generator
spring
spring-commands-rspec
Expand All @@ -864,4 +872,4 @@ DEPENDENCIES
yard

BUNDLED WITH
2.1.4
2.1.4
2 changes: 2 additions & 0 deletions src/supermarket/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
require "capybara/poltergeist"
require "capybara-screenshot/rspec"
require "factory_bot_rails"
require "simplecov"
SimpleCov.start

# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Expand Down