Skip to content

Commit

Permalink
Enable Rails 7.0 specs support
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattia Roccoberton committed Mar 27, 2022
1 parent 1baf6f8 commit c913121
Show file tree
Hide file tree
Showing 4 changed files with 404 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/specs_rails7.0.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
name: Specs Rails 7.0

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
tests:
runs-on: ubuntu-latest

strategy:
matrix:
ruby: ['2.7', '3.0']
gemfile: ['rails70_activeadmin']

env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Run tests
run: bundle exec rspec --profile

- name: On failure, archive screenshots as artifacts
uses: actions/upload-artifact@v2
if: failure()
with:
name: test-failed-screenshots
path: spec/dummy/tmp/screenshots
6 changes: 6 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,9 @@ appraise 'rails61-activeadmin' do
gem 'activeadmin'
gem 'rails', '~> 6.1.0'
end

appraise 'rails70-activeadmin' do
gem 'activeadmin'
gem 'rails', '~> 7.0.0'
gem 'sprockets-rails'
end
26 changes: 26 additions & 0 deletions gemfiles/rails70_activeadmin.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "activeadmin"
gem "rails", "~> 7.0.0"
gem "sprockets-rails"

group :development, :test do
gem "puma"
gem "sassc"
gem "sqlite3"
gem "capybara"
gem "cuprite"
gem "rspec_junit_formatter"
gem "rspec-rails"
gem "fasterer"
gem "rubocop"
gem "rubocop-packaging"
gem "rubocop-performance"
gem "rubocop-rails"
gem "rubocop-rspec"
gem "pry-rails"
end

gemspec path: "../"
Loading

0 comments on commit c913121

Please sign in to comment.