Skip to content

Commit

Permalink
require ruby 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Verseth committed May 13, 2024
1 parent d95e48c commit 91e0c71
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 3 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
CI: true
strategy:
matrix:
ruby-version: ['3.0', '3.1', '3.2']
ruby-version: ['3.1', '3.2', '3.3']
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -39,3 +39,18 @@ jobs:
bundler-cache: true
- name: Lint Ruby files
run: bundle exec rubocop --parallel

typecheck:
runs-on: ubuntu-latest
env:
CI: true
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Ruby and gems
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
- name: Typecheck Ruby files
run: bundle exec srb tc
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ inherit_gem:
rubocop-espago: rubocop.yml

AllCops:
TargetRubyVersion: 3.0
TargetRubyVersion: 3.1
Exclude:
- lib/tapioca/**/*.rb

Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ gem 'rake', '~> 13.0' # automation tasks
gem 'rubocop-espago', '~> 1.0' # ruby linter
gem 'shoulda-context', '~> 2.0' # more pleasant test syntax
gem 'solargraph', '~> 0.48' # language server
gem 'sorbet', '>= 0.5' # static typechecker
gem 'tapioca', '> 0.13' # RBI generator for sorbet
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ DEPENDENCIES
shale-builder!
shoulda-context (~> 2.0)
solargraph (~> 0.48)
sorbet (>= 0.5)
tapioca (> 0.13)

BUNDLED WITH
Expand Down
2 changes: 1 addition & 1 deletion shale-builder.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
spec.description = spec.summary
spec.homepage = 'https://github.com/Verseth/ruby-shale-builder'
spec.license = 'MIT'
spec.required_ruby_version = '>= 3.0.0'
spec.required_ruby_version = '>= 3.1.0'

spec.metadata['homepage_uri'] = spec.homepage
spec.metadata['source_code_uri'] = spec.homepage
Expand Down

0 comments on commit 91e0c71

Please sign in to comment.