File tree Expand file tree Collapse file tree 6 files changed +16
-40
lines changed
Expand file tree Collapse file tree 6 files changed +16
-40
lines changed Original file line number Diff line number Diff line change 7474 - name : Run tests with coverage
7575 run : bundle exec rspec
7676 env :
77- CI : true
7877 COVERAGE : true
79- COVERALLS_REPO_TOKEN : ${{ secrets.COVERALLS_REPO_TOKEN }}
78+
79+ - name : Upload coverage to Coveralls
80+ uses : coverallsapp/github-action@v2
81+ with :
82+ file : coverage/lcov.info
83+ github-token : ${{ secrets.GITHUB_TOKEN }}
8084
8185 # VSCode 플러그인 빌드
8286 vscode :
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ source "https://rubygems.org"
55gemspec
66
77group :development , :test do
8- gem "coveralls_reborn" , "~> 0.28.0" , require : false
98 gem "rake" , "~> 13.0"
109 gem "rspec" , "~> 3.0"
1110 gem "rspec_junit_formatter" , "~> 0.6.0"
Original file line number Diff line number Diff line change 88 remote: https://rubygems.org/
99 specs:
1010 ast (2.4.3 )
11- bigdecimal (3.3.1 )
12- coveralls_reborn (0.28.0 )
13- simplecov (~> 0.22.0 )
14- term-ansicolor (~> 1.7 )
15- thor (~> 1.2 )
16- tins (~> 1.32 )
1711 diff-lcs (1.6.2 )
1812 docile (1.4.1 )
1913 ffi (1.17.2 )
2418 listen (3.9.0 )
2519 rb-fsevent (~> 0.10 , >= 0.10.3 )
2620 rb-inotify (~> 0.9 , >= 0.9.10 )
27- mize (0.6.1 )
2821 parallel (1.27.0 )
2922 parser (3.3.10.0 )
3023 ast (~> 2.4.1 )
7467 simplecov-html (0.13.2 )
7568 simplecov-lcov (0.8.0 )
7669 simplecov_json_formatter (0.1.4 )
77- sync (0.5.0 )
78- term-ansicolor (1.11.3 )
79- tins (~> 1 )
80- thor (1.4.0 )
81- tins (1.48.0 )
82- bigdecimal
83- mize (~> 0.6 )
84- sync
8570 unicode-display_width (3.2.0 )
8671 unicode-emoji (~> 4.1 )
8772 unicode-emoji (4.1.0 )
@@ -91,7 +76,6 @@ PLATFORMS
9176 x86_64-linux
9277
9378DEPENDENCIES
94- coveralls_reborn (~> 0.28.0 )
9579 rake (~> 13.0 )
9680 rspec (~> 3.0 )
9781 rspec_junit_formatter (~> 0.6.0 )
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ plugins {
55}
66
77group = " io.truby"
8- version = " 0.1.3 "
8+ version = " 0.1.4 "
99
1010repositories {
1111 mavenCentral()
Original file line number Diff line number Diff line change 22 "name" : " t-ruby" ,
33 "displayName" : " T-Ruby" ,
44 "description" : " T-Ruby language support with type annotations for Ruby" ,
5- "version" : " 0.1.11 " ,
5+ "version" : " 0.1.12 " ,
66 "publisher" : " t-ruby" ,
77 "engines" : {
88 "vscode" : " ^1.75.0"
Original file line number Diff line number Diff line change 66# SimpleCov configuration for code coverage tracking
77if ENV [ "COVERAGE" ]
88 require "simplecov"
9+ require "simplecov-lcov"
910
10- formatters = [ SimpleCov ::Formatter ::HTMLFormatter ]
11-
12- # Add Coveralls formatter for CI
13- if ENV [ "CI" ]
14- begin
15- require "simplecov-lcov"
16- require "coveralls_reborn"
17-
18- SimpleCov ::Formatter ::LcovFormatter . config do |c |
19- c . report_with_single_file = true
20- c . single_report_path = "coverage/lcov.info"
21- end
22-
23- formatters << SimpleCov ::Formatter ::LcovFormatter
24- formatters << Coveralls ::SimpleCov ::Formatter
25- rescue LoadError
26- # coveralls not available
27- end
11+ SimpleCov ::Formatter ::LcovFormatter . config do |c |
12+ c . report_with_single_file = true
13+ c . single_report_path = "coverage/lcov.info"
2814 end
2915
30- SimpleCov . formatters = SimpleCov ::Formatter ::MultiFormatter . new ( formatters )
16+ SimpleCov . formatters = SimpleCov ::Formatter ::MultiFormatter . new ( [
17+ SimpleCov ::Formatter ::HTMLFormatter ,
18+ SimpleCov ::Formatter ::LcovFormatter
19+ ] )
3120
3221 SimpleCov . start do
3322 add_filter "/spec/"
You can’t perform that action at this time.
0 commit comments