Skip to content

Commit

Permalink
Add Rails 8 to testing matrix (#1038)
Browse files Browse the repository at this point in the history
* ci: Add Rails 8 to testing matrix

* chore: Fix erb_lint deprecation warnings
  • Loading branch information
hasghari authored Nov 14, 2024
1 parent 6131b48 commit a0747fc
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 1 deletion.
File renamed without changes.
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,14 @@ jobs:
- "7.0"
- "7.1"
- "7.2"
- "8.0"
ruby:
- "3.1.6"
- "3.2.5"
- "3.3.5"
exclude:
- ruby: "3.1.6"
gemfile: "8.0"

env:
BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.gemfile }}.gemfile
Expand Down
5 changes: 5 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@ end
appraise "rails_7.2" do
gem "railties", "~> 7.2.0"
end

appraise "rails_8.0" do
gem "railties", "~> 8.0.0"
gem 'sqlite3', '>= 2.1'
end
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ end

desc "Lint ERB templates"
task :erb_lint do
sh("bundle", "exec", "erblint", "app/views/**/*.erb")
sh("bundle", "exec", "erb_lint", "app/views/**/*.erb")
end

desc "Run the specs and acceptance tests"
Expand Down
20 changes: 20 additions & 0 deletions gemfiles/rails_8.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "addressable"
gem "ammeter"
gem "appraisal"
gem "capybara"
gem "database_cleaner"
gem "erb_lint", require: false
gem "factory_bot_rails"
gem "nokogiri"
gem "pry", require: false
gem "rails-controller-testing"
gem "rspec-rails"
gem "shoulda-matchers"
gem "sqlite3", ">= 2.1"
gem "railties", "~> 8.0.0"

gemspec path: "../"

0 comments on commit a0747fc

Please sign in to comment.