From 0ee0be5cca0067617bc7cc34ff4719cd48acd97c Mon Sep 17 00:00:00 2001 From: Peter Goldstein Date: Mon, 27 Feb 2023 08:37:04 -0500 Subject: [PATCH] Add Ruby 3.2 and ActiveSupport 7 to CI. Update checkout action version. (#243) --- .github/workflows/project-build.yml | 13 +++++++++---- Appraisals | 4 ++++ gemfiles/activesupport_7.gemfile | 7 +++++++ light-service.gemspec | 2 +- 4 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 gemfiles/activesupport_7.gemfile diff --git a/.github/workflows/project-build.yml b/.github/workflows/project-build.yml index 0cb9e7c0..1007a26a 100644 --- a/.github/workflows/project-build.yml +++ b/.github/workflows/project-build.yml @@ -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 diff --git a/Appraisals b/Appraisals index 8f755afe..f838fbe3 100644 --- a/Appraisals +++ b/Appraisals @@ -9,3 +9,7 @@ end appraise "activesupport-6" do gem "activesupport", "~> 6.0" end + +appraise "activesupport-7" do + gem "activesupport", "~> 7.0" +end diff --git a/gemfiles/activesupport_7.gemfile b/gemfiles/activesupport_7.gemfile new file mode 100644 index 00000000..23d52457 --- /dev/null +++ b/gemfiles/activesupport_7.gemfile @@ -0,0 +1,7 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "activesupport", "~> 7.0" + +gemspec :path => "../" diff --git a/light-service.gemspec b/light-service.gemspec index 31a817a6..744daedd 100644 --- a/light-service.gemspec +++ b/light-service.gemspec @@ -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