Skip to content

Commit

Permalink
Merge pull request #314 from tagliala/feature/activesupport-7
Browse files Browse the repository at this point in the history
Add Active Support 7 support
  • Loading branch information
javierjulio authored Dec 21, 2021
2 parents 10aa3de + 0979040 commit e4970e6
Show file tree
Hide file tree
Showing 8 changed files with 458 additions and 141 deletions.
36 changes: 22 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,16 @@ jobs:
fail-fast: false

matrix:
ruby: [2.5.8, 2.6.6, 2.7.2, 3.0.0, jruby-9.2.16.0]
ruby: [2.5.9, 2.6.9, 2.7.5, 3.0.3, jruby-9.3.2.0]
deps: [rails_61, rails_70]

env:
BUNDLE_PATH: vendor/bundle
exclude:
- deps: rails_70
ruby: 2.5.9
- deps: rails_70
ruby: 2.6.9
- deps: rails_70
ruby: jruby-9.3.2.0

steps:
- uses: actions/checkout@v2
Expand All @@ -32,20 +38,22 @@ jobs:
ruby-version: ${{ matrix.ruby }}
bundler: none

- name: Install a specific rubygems version
run: gem update --system 3.2.0.rc.1
- name: Configure bundler (default)
run: |
echo "BUNDLE_GEMFILE=Gemfile" >> $GITHUB_ENV
echo "BUNDLE_PATH=$(pwd)/vendor/bundle" >> $GITHUB_ENV
if: matrix.deps == 'rails_70'

- name: Install a specific bundler version
run: gem install bundler -v 2.1.4
- name: Configure bundler (alternative)
run: |
echo "BUNDLE_GEMFILE=gemfiles/${{ matrix.deps }}.gemfile" >> $GITHUB_ENV
echo "BUNDLE_PATH=$(pwd)/gemfiles/${{ matrix.deps }}/vendor/bundle" >> $GITHUB_ENV
if: matrix.deps != 'rails_70'

- name: Restore cached dependencies
uses: actions/cache@v2
- uses: ruby/setup-ruby@v1
with:
path: ${{ env.BUNDLE_PATH }}
key: gems-${{ matrix.ruby }}-${{ hashFiles('current_gemfile.lock') }}

- name: Install dependencies
run: bundle install --jobs 3
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Run tests
run: bundle exec rake
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Master (unreleased)

* Allow activesupport 7.0. [#314][] by [@tagliala][]

## 1.4.0 [](https://github.com/activeadmin/arbre/compare/v1.3.0...v1.4.0)

* Allow activesupport 6.1 prereleases. [#242][] by [@deivid-rodriguez][]
Expand Down Expand Up @@ -98,6 +100,7 @@ Initial release and extraction from Active Admin
[#202]: https://github.com/activeadmin/arbre/pull/202
[#205]: https://github.com/activeadmin/arbre/pull/205
[#242]: https://github.com/activeadmin/arbre/pull/242
[#314]: https://github.com/activeadmin/arbre/pull/314

[@aramvisser]: https://github.com/aramvisser
[@LTe]: https://github.com/LTe
Expand All @@ -113,3 +116,4 @@ Initial release and extraction from Active Admin
[@seanlinsley]: https://github.com/seanlinsley
[@timoschilling]: https://github.com/timoschilling
[@varyonic]: https://github.com/varyonic
[@tagliala]: https://github.com/tagliala
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ group :release do
end

group :rails do
gem 'rails', '~> 6.1.a'
gem 'rails', '~> 7.0.0'
gem 'rspec-rails'
gem 'combustion'
gem 'capybara'
Expand Down
Loading

0 comments on commit e4970e6

Please sign in to comment.