Skip to content

Commit

Permalink
Test appraisals in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
leoarnold committed Mar 15, 2024
1 parent 9f80ca4 commit 123c0ad
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 31 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,8 @@ jobs:
- 3.1.0
- 3.2.0
- 3.3.0
gemfile:
- gemfiles/activesupport_6_1.gemfile
- gemfiles/activesupport_7_0.gemfile
- gemfiles/activesupport_7_1.gemfile

name: Ruby ${{ matrix.ruby }} using Gemfile ${{ matrix.gemfile }}
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
name: Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
Expand All @@ -38,4 +32,7 @@ jobs:
restore-keys: |
${{ runner.os }}-gems-
- run: bundle install
- run: bundle exec rake
- name: 'Ensure appraisals are up to date'
run: appraisal clean && appraisal generate && git diff --exit-code
- run: appraisal install
- run: appraisal rake
26 changes: 6 additions & 20 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,27 +1,13 @@
# frozen_string_literal: true

appraise 'activesupport-2.3-LTS' do
gem 'rexml'
gem 'activesupport', '>= 2', git: 'https://github.com/makandra/rails.git', branch: '2-3-lts'
appraise 'activesupport-6_1' do
gem 'activesupport', '~> 6.1'
end

appraise 'activesupport-3' do
gem 'activesupport', '~> 3'
gem 'tzinfo', '~> 1.2'
appraise 'activesupport-7_0' do
gem 'activesupport', '~> 7.0'
end

appraise 'activesupport-4' do
gem 'activesupport', '~> 4'
end

appraise 'activesupport-5' do
gem 'activesupport', '~> 5'
end

appraise 'activesupport-6' do
gem 'activesupport', '~> 6'
end

appraise 'activesupport-7' do
gem 'activesupport', '~> 7'
appraise 'activesupport-7_1' do
gem 'activesupport', '~> 7.1'
end
2 changes: 1 addition & 1 deletion gemfiles/activesupport_6_1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ gem "rubocop", "0.63.1"
gem "activesupport", "~> 6.1"

platforms :mri do
gem "pry-byebug"
gem "pry-byebug", "~> 3.10.1"
end

gemspec path: "../"
2 changes: 1 addition & 1 deletion gemfiles/activesupport_7_0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ gem "rubocop", "0.63.1"
gem "activesupport", "~> 7.0"

platforms :mri do
gem "pry-byebug"
gem "pry-byebug", "~> 3.10.1"
end

gemspec path: "../"
2 changes: 1 addition & 1 deletion gemfiles/activesupport_7_1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ gem "rubocop", "0.63.1"
gem "activesupport", "~> 7.1"

platforms :mri do
gem "pry-byebug"
gem "pry-byebug", "~> 3.10.1"
end

gemspec path: "../"

0 comments on commit 123c0ad

Please sign in to comment.