Skip to content

Commit

Permalink
Test against Rails main
Browse files Browse the repository at this point in the history
Drops upper limit on Rails, tests with Rails main.
  • Loading branch information
HeyNonster committed Jul 1, 2024
1 parent f098032 commit 7260176
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- rails6.1
- rails7.0
- rails7.1
- rails_main
env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
steps:
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/test_against_rails_main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test against Rails main

on:
schedule:
- cron: "0 0 * * *" # Run every day at 00:00 UTC
workflow_dispatch:

jobs:
tests:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
ruby-version:
- '3.3'
gemfile:
- rails_main
env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
steps:
- uses: zendesk/checkout@v4
- name: Set up Ruby
uses: zendesk/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- run: bundle install
- name: Tests
run: bundle exec rake test
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

* Dropped upper limit on Rails, started testing with Rails main.
* Dropped support for Ruby < 3.1.
* Dropped support for Rails < 6.1.

Expand Down
4 changes: 2 additions & 2 deletions charcoal.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Gem::Specification.new("charcoal", Charcoal::VERSION) do |s|

s.licenses = ["MIT"]

s.add_runtime_dependency "activesupport", ">= 6.1", "< 7.2"
s.add_runtime_dependency "actionpack", ">= 6.1", "< 7.2"
s.add_runtime_dependency "activesupport", ">= 6.1"
s.add_runtime_dependency "actionpack", ">= 6.1"

s.add_development_dependency "rake"
s.add_development_dependency "yard", ">= 0.9.11"
Expand Down
4 changes: 4 additions & 0 deletions gemfiles/rails_main.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
eval_gemfile "common.rb"

gem "rails", github: "rails/rails", branch: "main"
gem "actionpack-action_caching"

0 comments on commit 7260176

Please sign in to comment.