Skip to content

Commit

Permalink
Use Ruby 3.3.1 as check version
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyCTHsu committed May 25, 2024
1 parent 9e4dcfa commit 1a53098
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2.4"
ruby-version: "3.3.1"
bundler-cache: true
- name: Lint with standardrb
run: bundle exec rake standard
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ jobs:
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: '3.2.4'
ruby-version: '3.3.1'
- uses: rubygems/release-gem@v1
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.3.1
10 changes: 3 additions & 7 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# frozen_string_literal: true

require "bundler/gem_tasks"
require "rspec/core/rake_task"
# load rake tasks from tasks directory
Dir.glob(File.join(__dir__ || Dir.pwd, "tasks", "**", "*.rake")) { |f| import f }

RSpec::Core::RakeTask.new(:spec)

require "standard/rake"

task default: %i[standard spec]
task default: %i[spec]
6 changes: 0 additions & 6 deletions gemfiles/ruby-2.7.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,3 @@ group :test do
gem "rspec", "~> 3.0", require: false
gem "datadog-ci", "~> 1.0.0.beta5", require: false
end

group :check do
gem "standard", "~> 1.0", require: false
gem "steep", "~> 1.6", require: false
gem "rbs", "~> 3.4", require: false
end
6 changes: 0 additions & 6 deletions gemfiles/ruby-3.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,3 @@ group :test do
gem "rspec", "~> 3.0", require: false
gem "datadog-ci", "~> 1.0.0.beta5", require: false
end

group :check do
gem "standard", "~> 1.0", require: false
gem "steep", "~> 1.6", require: false
gem "rbs", "~> 3.4", require: false
end
6 changes: 0 additions & 6 deletions gemfiles/ruby-3.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,3 @@ group :test do
gem "rspec", "~> 3.0", require: false
gem "datadog-ci", "~> 1.0.0.beta5", require: false
end

group :check do
gem "standard", "~> 1.0", require: false
gem "steep", "~> 1.6", require: false
gem "rbs", "~> 3.4", require: false
end
6 changes: 0 additions & 6 deletions gemfiles/ruby-3.2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,3 @@ group :test do
gem "rspec", "~> 3.0", require: false
gem "datadog-ci", "~> 1.0.0.beta5", require: false
end

group :check do
gem "standard", "~> 1.0", require: false
gem "steep", "~> 1.6", require: false
gem "rbs", "~> 3.4", require: false
end
1 change: 0 additions & 1 deletion gemfiles/ruby-3.3.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ end
group :check do
gem "standard", "~> 1.0", require: false
gem "steep", "~> 1.6", require: false
gem "rbs", "~> 3.4", require: false
end
3 changes: 3 additions & 0 deletions tasks/bundler.rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# frozen_string_literal: true

require "bundler/gem_tasks"
8 changes: 8 additions & 0 deletions tasks/standard.rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# frozen_string_literal: true

begin
require "standard/rake"
rescue LoadError
warn "'standard' gem not loaded: skipping tasks..."
return
end

0 comments on commit 1a53098

Please sign in to comment.