Skip to content

Commit

Permalink
Merge pull request #21 from bigcommerce/ruby-33
Browse files Browse the repository at this point in the history
Add Ruby 3.3 to test suite
  • Loading branch information
splittingred authored Feb 5, 2024
2 parents cd0ab0d + bc98d0a commit 7c424ee
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 9 deletions.
21 changes: 18 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ executors:
ruby-version:
type: string
default: "3.2"
ruby_3_3:
<<: *ruby_env
parameters:
ruby-version:
type: string
default: "3.3"

commands:
pre-setup:
Expand All @@ -44,7 +50,7 @@ commands:
parameters:
gem_cache_key:
type: string
default: gem-cache-v2
default: gem-cache-v3
grpc_ruby_build_procs:
type: integer
default: 4
Expand All @@ -58,8 +64,6 @@ commands:
name: "Bundle install"
command: |
export GRPC_RUBY_BUILD_PROCS=<<parameters.grpc_ruby_build_procs>>
# due to needing GRPC_RUBY_BUILD_PROCS, we need to explicitly install at least this version
gem install grpc -v '>= 1.44.0.pre2' --verbose --no-document
bundle config set --local path 'vendor/bundle'
bundle lock --add-platform x86_64-linux
bundle check || bundle install
Expand Down Expand Up @@ -186,3 +190,14 @@ workflows:
- rspec-unit:
name: "ruby-3_2-rspec"
e: "ruby_3_2"
ruby_3_3:
jobs:
- bundle-audit:
name: "ruby-3_3-bundle_audit"
e: "ruby_3_3"
- rubocop:
name: "ruby-3_3-rubocop"
e: "ruby_3_3"
- rspec-unit:
name: "ruby-3_3-rspec"
e: "ruby_3_3"
6 changes: 6 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,10 @@ source 'https://rubygems.org'

git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }

gem 'bundler-audit', '>= 0.6'
gem 'pry', '>= 0.13'
gem 'rspec_junit_formatter', '>= 0.4'
gem 'rubocop', '>= 0.82'
gem 'simplecov', '>= 0.15'

gemspec
7 changes: 1 addition & 6 deletions gruf-rspec.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,8 @@ Gem::Specification.new do |spec|
spec.files = Dir['README.md', 'CHANGELOG.md', 'CODE_OF_CONDUCT.md', 'lib/**/*', 'gruf-rspec.gemspec']
spec.require_paths = %w[lib]

spec.add_development_dependency 'bundler-audit', '>= 0.6'
spec.add_development_dependency 'pry', '>= 0.13'
spec.add_development_dependency 'rspec_junit_formatter', '>= 0.4'
spec.add_development_dependency 'rubocop', '>= 0.82'
spec.add_development_dependency 'simplecov', '>= 0.15'

spec.add_runtime_dependency 'gruf', '~> 2.5', '>= 2.5.1'
spec.add_runtime_dependency 'rake', '>= 12.3'
spec.add_runtime_dependency 'rspec', '>= 3.8'
spec.add_runtime_dependency 'zeitwerk', '>= 2'
end

0 comments on commit 7c424ee

Please sign in to comment.