Skip to content

Commit ef6c8fe

Browse files
yhk1038claude
andcommitted
fix: use Coveralls GitHub Action for coverage upload
- Replace coveralls_reborn gem with official Coveralls GitHub Action - Simplify spec_helper.rb to always generate LCOV format - Remove coveralls_reborn dependency from Gemfile 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent d27cdaf commit ef6c8fe

File tree

6 files changed

+16
-40
lines changed

6 files changed

+16
-40
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,13 @@ jobs:
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:

Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ source "https://rubygems.org"
55
gemspec
66

77
group :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"

Gemfile.lock

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@ GEM
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)
@@ -24,7 +18,6 @@ GEM
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)
@@ -74,14 +67,6 @@ GEM
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

9378
DEPENDENCIES
94-
coveralls_reborn (~> 0.28.0)
9579
rake (~> 13.0)
9680
rspec (~> 3.0)
9781
rspec_junit_formatter (~> 0.6.0)

editors/jetbrains/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
group = "io.truby"
8-
version = "0.1.3"
8+
version = "0.1.4"
99

1010
repositories {
1111
mavenCentral()

editors/vscode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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"

spec/spec_helper.rb

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,17 @@
66
# SimpleCov configuration for code coverage tracking
77
if 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/"

0 commit comments

Comments
 (0)