mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-23 01:03:21 +00:00
Adds undercover to the build file
This commit is contained in:
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@@ -86,6 +86,11 @@ jobs:
|
||||
git show --no-patch # the commit being tested (which is often a merge due to actions/checkout@v3)
|
||||
bin/rake knapsack_pro:rspec
|
||||
|
||||
- name: Check code coverage changes
|
||||
|
||||
run: |
|
||||
bundle exec undercover --compare origin/master
|
||||
|
||||
models:
|
||||
runs-on: ubuntu-22.04
|
||||
services:
|
||||
@@ -145,6 +150,11 @@ jobs:
|
||||
run: |
|
||||
bin/rake knapsack_pro:rspec
|
||||
|
||||
- name: Check code coverage changes
|
||||
|
||||
run: |
|
||||
bundle exec undercover --compare origin/master
|
||||
|
||||
system_admin:
|
||||
runs-on: ubuntu-22.04
|
||||
services:
|
||||
@@ -222,6 +232,11 @@ jobs:
|
||||
path: tmp/capybara/screenshots/*.png
|
||||
retention-days: 7
|
||||
if-no-files-found: ignore
|
||||
|
||||
- name: Check code coverage changes
|
||||
|
||||
run: |
|
||||
bundle exec undercover --compare origin/master
|
||||
|
||||
system_consumer:
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
@@ -974,7 +974,6 @@ DEPENDENCIES
|
||||
sidekiq
|
||||
sidekiq-scheduler
|
||||
simplecov
|
||||
simplecov-html
|
||||
simplecov-lcov
|
||||
spreadsheet_architect
|
||||
spring
|
||||
|
||||
@@ -7,9 +7,10 @@ ENV["RAILS_ENV"] ||= 'test'
|
||||
require 'simplecov' if ENV["COVERAGE"]
|
||||
require 'simplecov-lcov'
|
||||
SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true
|
||||
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
|
||||
SimpleCov::Formatter::LcovFormatter,
|
||||
])
|
||||
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.
|
||||
new([
|
||||
SimpleCov::Formatter::LcovFormatter,
|
||||
])
|
||||
require 'undercover'
|
||||
|
||||
require 'rubygems'
|
||||
|
||||
Reference in New Issue
Block a user