File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,20 +3,20 @@ name: Specs
33
44on :
55 push :
6- branches : [develop, main]
6+ branches : [main]
77 pull_request :
8- branches : [develop, main]
8+ branches : [main]
99
1010jobs :
11- test :
11+ tests :
1212 runs-on : ubuntu-latest
1313
1414 strategy :
1515 matrix :
1616 ruby : ['2.6', '2.7', '3.0']
1717
1818 steps :
19- - name : Checkout
19+ - name : Checkout repository
2020 uses : actions/checkout@v2
2121
2222 - name : Set up Ruby
2626 bundler-cache : true
2727
2828 - name : Run tests
29- run : bin/rspec --profile
29+ run : bundle exec rspec --profile
30+
31+ - name : Code Climate test coverage
32+ uses : paambaati/codeclimate-action@v3.0.0
33+ env :
34+ CC_TEST_REPORTER_ID : ${{ secrets.CC_TEST_REPORTER_ID }}
35+ with :
36+ coverageLocations : |
37+ ${{github.workspace}}/coverage/lcov/prawn-html.lcov:lcov
Original file line number Diff line number Diff line change @@ -5,9 +5,11 @@ source 'https://rubygems.org'
55gemspec
66
77group :development , :test do
8+ # Testing
89 gem 'pdf-inspector' , require : 'pdf/inspector'
910 gem 'rspec'
1011 gem 'simplecov' , require : false
12+ gem 'simplecov-lcov' , require : false
1113
1214 # Linters
1315 gem 'fasterer'
Original file line number Diff line number Diff line change 11# Prawn HTML
22[ ![ gem version] ( https://badge.fury.io/rb/prawn-html.svg )] ( https://rubygems.org/gems/prawn-html )
3+ [ ![ gem downloads] ( https://badgen.net/rubygems/dt/prawn-html )] ( https://rubygems.org/gems/prawn-html )
4+ [ ![ maintainability] ( https://api.codeclimate.com/v1/badges/db674db00817d56ca1e9/maintainability )] ( https://codeclimate.com/github/blocknotes/prawn-html/maintainability )
35[ ![ linters] ( https://github.com/blocknotes/prawn-html/actions/workflows/linters.yml/badge.svg )] ( https://github.com/blocknotes/prawn-html/actions/workflows/linters.yml )
46[ ![ specs] ( https://github.com/blocknotes/prawn-html/actions/workflows/specs.yml/badge.svg )] ( https://github.com/blocknotes/prawn-html/actions/workflows/specs.yml )
57
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
33require 'simplecov'
4+ require 'simplecov-lcov'
5+
6+ SimpleCov ::Formatter ::LcovFormatter . config do |c |
7+ c . report_with_single_file = true
8+ # c.single_report_path = ENV['LCOV_PATH'] if ENV['LCOV_PATH'].present?
9+ end
10+ simplecov_formatters = [ SimpleCov ::Formatter ::LcovFormatter , SimpleCov . formatter ]
11+ SimpleCov . formatter = SimpleCov ::Formatter ::MultiFormatter . new ( simplecov_formatters )
412SimpleCov . start do
513 add_filter '/spec/'
614end
You can’t perform that action at this time.
0 commit comments