Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
CRuby:
uses: ./.github/workflows/cruby.yaml
lint:
name: Rubocop
name: Code quality
runs-on: ubuntu-latest
env:
BUNDLE_WITHOUT: 'development'
Expand All @@ -22,12 +22,11 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
bundler-cache: true
- name: Run Rubocop
- name: Run RuboCop
run: bundle exec rubocop -f github
signatures:
name: RBS
typing:
name: Type checking
runs-on: ubuntu-latest
env:
BUNDLE_WITHOUT: 'development'
Expand All @@ -36,25 +35,25 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
bundler-cache: true
- name: Install RBS collection
run: bundle exec rbs collection install
- name: Run RBS
run: bundle exec rake rbs
- name: Run RBS and Steep
run: bundle exec rake steep
coverage:
name: Coverage report for PR
if: ${{ github.event_name == 'pull_request' }}
needs: CRuby
runs-on: ubuntu-latest
permissions:
pull-requests: write
env:
BUNDLE_WITHOUT: 'development'
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
bundler-cache: true
- name: Run RSpec
run: bundle exec rake spec
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cruby.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
experimental: [false]
continue-on-error: ${{ matrix.experimental }}
env:
BUNDLE_WITHOUT: 'development'
BUNDLE_ONLY: 'default test'
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
Expand Down
26 changes: 11 additions & 15 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,23 @@ group :linting do

# Checking type signatures
gem "rbs", require: false
# Checking types in code
gem "steep", require: false
end

group :development do
# Type checking
gem "steep", require: false
group :test do
# Testing framework
gem "rspec", require: false

# Code coverage report
gem "simplecov", require: false
gem "simplecov_lcov_formatter", require: false
end

group :development do
# Documentation
gem "yard", require: false

# Language server for development
gem "solargraph", require: false

# Version changes
gem "bump", require: false

Expand All @@ -38,12 +43,3 @@ group :development do
gem "benchmark-ips", require: false
gem "stackprof", require: false
end

group :test do
# Testing framework
gem "rspec", require: false

# Code coverage report
gem "simplecov", require: false
gem "simplecov_lcov_formatter", require: false
end
52 changes: 0 additions & 52 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ GEM
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
ast (2.4.3)
backport (1.2.0)
base64 (0.3.0)
benchmark (0.4.1)
benchmark-ips (2.14.0)
Expand All @@ -43,12 +42,7 @@ GEM
fileutils (1.7.3)
i18n (1.14.7)
concurrent-ruby (~> 1.0)
jaro_winkler (1.6.1)
json (2.13.2)
kramdown (2.5.1)
rexml (>= 3.3.9)
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
language_server-protocol (3.17.0.5)
lint_roller (1.1.0)
listen (3.9.0)
Expand All @@ -57,24 +51,6 @@ GEM
logger (1.7.0)
minitest (5.25.5)
mutex_m (0.3.0)
nokogiri (1.18.9-aarch64-linux-gnu)
racc (~> 1.4)
nokogiri (1.18.9-aarch64-linux-musl)
racc (~> 1.4)
nokogiri (1.18.9-arm-linux-gnu)
racc (~> 1.4)
nokogiri (1.18.9-arm-linux-musl)
racc (~> 1.4)
nokogiri (1.18.9-arm64-darwin)
racc (~> 1.4)
nokogiri (1.18.9-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.18.9-x86_64-linux-gnu)
racc (~> 1.4)
nokogiri (1.18.9-x86_64-linux-musl)
racc (~> 1.4)
observer (0.1.2)
ostruct (0.6.3)
parallel (1.27.0)
parser (3.3.9.0)
ast (~> 2.4.1)
Expand All @@ -89,9 +65,6 @@ GEM
rbs (3.9.4)
logger
regexp_parser (2.10.0)
reverse_markdown (3.0.0)
nokogiri
rexml (3.4.1)
rspec (3.13.1)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
Expand Down Expand Up @@ -147,26 +120,6 @@ GEM
simplecov_json_formatter (0.1.4)
simplecov_lcov_formatter (0.9.0)
simplecov (>= 0.18)
solargraph (0.56.0)
backport (~> 1.2)
benchmark (~> 0.4)
bundler (~> 2.0)
diff-lcs (~> 1.4)
jaro_winkler (~> 1.6, >= 1.6.1)
kramdown (~> 2.3)
kramdown-parser-gfm (~> 1.1)
logger (~> 1.6)
observer (~> 0.1)
ostruct (~> 0.6)
parser (~> 3.0)
prism (~> 1.4)
rbs (~> 3.3)
reverse_markdown (~> 3.0)
rubocop (~> 1.38)
thor (~> 1.0)
tilt (~> 2.0)
yard (~> 0.9, >= 0.9.24)
yard-solargraph (~> 0.1)
stackprof (0.2.27)
steep (1.10.0)
activesupport (>= 5.1)
Expand All @@ -188,8 +141,6 @@ GEM
strscan (3.1.5)
terminal-table (4.0.0)
unicode-display_width (>= 1.1.1, < 4)
thor (1.4.0)
tilt (2.6.1)
tsort (0.2.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
Expand All @@ -198,8 +149,6 @@ GEM
unicode-emoji (4.0.4)
uri (1.0.3)
yard (0.9.37)
yard-solargraph (0.1.0)
yard (~> 0.9)

PLATFORMS
aarch64-linux-gnu
Expand Down Expand Up @@ -227,7 +176,6 @@ DEPENDENCIES
rubocop-thread_safety
simplecov
simplecov_lcov_formatter
solargraph
stackprof
steep
yard
Expand Down
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

task default: %i[spec rubocop rbs]
task default: %i[spec rubocop steep]

require "English"
require "bundler/gem_tasks"
Expand All @@ -22,7 +22,7 @@ desc "Validate signatures with RBS"
task :rbs do
puts "Checking signatures with RBS..."
if system "rbs", "-Isig", "validate"
puts "Signatures are good!"
puts "Signatures are valid!"
puts
else
puts "Signatures validation was not successful!"
Expand Down