File tree Expand file tree Collapse file tree 3 files changed +26
-3
lines changed Expand file tree Collapse file tree 3 files changed +26
-3
lines changed Original file line number Diff line number Diff line change @@ -103,15 +103,26 @@ jobs:
103
103
runs-on : ubuntu-latest
104
104
steps :
105
105
- uses : actions/checkout@v4
106
+ - uses : ruby/setup-ruby@v1
107
+ with :
108
+ ruby-version : ' 3.3' # Not needed with a .ruby-version, .tool-versions or mise.toml
109
+ bundler-cache : true # runs 'bundle install' and caches installed gems automatically
106
110
- name : Setup Bats and bats libs
107
111
id : setup-bats
108
112
109
- - name : run unittests
113
+ - name : Install Ruby dependencies
114
+ run : bundle update --bundler && bundle install
115
+ - name : Run unittests
110
116
shell : bash
111
117
env :
112
118
BATS_LIB_PATH : ${{ steps.setup-bats.outputs.lib-path }}
113
- TERM : xterm
114
- run : bats tests/test_start_ursim.bats
119
+ run : bundle exec bashcov bats tests/test_start_ursim.bats
120
+ - name : Upload reports to Codecov
121
+ uses : codecov/codecov-action@v5
122
+ with :
123
+ fail_ci_if_error : true
124
+ token : ${{ secrets.CODECOV_TOKEN }}
125
+ flags : start_ursim
115
126
116
127
check_links :
117
128
runs-on : ubuntu-latest
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
+ # Used vor bashcov coverage tool for the shell script
2
+ # frozen_string_literal: true
3
+
4
+ source 'https://rubygems.org'
5
+
6
+ gem 'bashcov'
7
+ gem 'simplecov'
8
+ gem 'simplecov-cobertura'
You can’t perform that action at this time.
0 commit comments