File tree Expand file tree Collapse file tree 4 files changed +61
-0
lines changed
Expand file tree Collapse file tree 4 files changed +61
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Test and coverage
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ build :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - uses : actions/checkout@v6
10+ with :
11+ fetch-depth : 2
12+ - uses : actions/setup-ruby@v1
13+ with :
14+ ruby-version : ' 3.3'
15+ - name : Install Ruby dependencies
16+ run : bundle update --bundler && bundle install
17+ - name : Install shunit2
18+ run : sudo apt install -y shunit2
19+ - name : Run script
20+ run : bashcov test/test_modified_branch_files_test.sh && bashcov test/open_coverage_test.sh
21+ - name : Upload reports to Codecov
22+ uses : codecov/codecov-action@v2
Original file line number Diff line number Diff line change 1+ require 'simplecov'
2+ require 'simplecov-cobertura'
3+
4+ SimpleCov . formatter = SimpleCov ::Formatter ::CoberturaFormatter
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
3+ source 'https://rubygems.org'
4+
5+ gem 'bashcov'
6+ gem 'simplecov'
7+ gem 'simplecov-cobertura'
Original file line number Diff line number Diff line change 1+ GEM
2+ remote: https://rubygems.org/
3+ specs:
4+ bashcov (3.2.0 )
5+ simplecov (~> 0.21 )
6+ docile (1.4.1 )
7+ rexml (3.4.4 )
8+ simplecov (0.22.0 )
9+ docile (~> 1.1 )
10+ simplecov-html (~> 0.11 )
11+ simplecov_json_formatter (~> 0.1 )
12+ simplecov-cobertura (3.1.0 )
13+ rexml
14+ simplecov (~> 0.19 )
15+ simplecov-html (0.13.2 )
16+ simplecov_json_formatter (0.1.4 )
17+
18+ PLATFORMS
19+ arm64-darwin-24
20+ ruby
21+
22+ DEPENDENCIES
23+ bashcov
24+ simplecov
25+ simplecov-cobertura
26+
27+ BUNDLED WITH
28+ 4.0.1
You can’t perform that action at this time.
0 commit comments