Skip to content

Commit

Permalink
Add Ruby 3.2 and ActiveSupport 7 to CI. Update checkout action versio…
Browse files Browse the repository at this point in the history
…n. (#243)
  • Loading branch information
petergoldstein authored Feb 27, 2023
1 parent bc5dcc0 commit 0ee0be5
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/project-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,21 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu, macos]
ruby: [2.7.4, 3.0.2, 3.1.0]
gemfile: [activesupport_5, activesupport_6]
ruby: [2.7, '3.0', '3.1', '3.2']
gemfile: [activesupport_5, activesupport_6, activesupport_7]
exclude:
- ruby: '3.2'
gemfile: activesupport_5
- ruby: 2.7
gemfile: activesupport_7
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- run: bundle install
bundler-cache: true
- run: bundle exec rspec spec
- run: bundle exec rubocop
4 changes: 4 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ end
appraise "activesupport-6" do
gem "activesupport", "~> 6.0"
end

appraise "activesupport-7" do
gem "activesupport", "~> 7.0"
end
7 changes: 7 additions & 0 deletions gemfiles/activesupport_7.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "activesupport", "~> 7.0"

gemspec :path => "../"
2 changes: 1 addition & 1 deletion light-service.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ Gem::Specification.new do |gem|
gem.add_development_dependency("codecov", "~> 0.1")
gem.add_development_dependency("rubocop", "~> 1.26.0")
gem.add_development_dependency("rubocop-performance", "~> 1.2.0")
gem.add_development_dependency("pry", "~> 0.12.2")
gem.add_development_dependency("pry", "~> 0.14")
end

0 comments on commit 0ee0be5

Please sign in to comment.