Skip to content

Commit 22cbee3

Browse files
Test with rails main
1 parent 17e5f4c commit 22cbee3

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Test against Rails main
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *" # Run every day at 00:00 UTC
6+
workflow_dispatch:
7+
push:
8+
9+
jobs:
10+
specs:
11+
name: Ruby${{ matrix.ruby }} rails_main test
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
ruby:
17+
- '3.3'
18+
env:
19+
BUNDLE_GEMFILE: gemfiles/rails_main.gemfile
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: ruby/setup-ruby@v1
23+
with:
24+
ruby-version: ${{ matrix.ruby }}
25+
bundler-cache: true
26+
- run: bundle exec rake test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ pkg
1919
mkmf.log
2020
.bundle/config
2121
.bundle/environment.rb
22+
/gemfiles/rails_main.gemfile.lock

gemfiles/rails_main.gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source "https://rubygems.org"
2+
3+
gem "activerecord", github: "rails/rails", branch: "main"
4+
gem "sqlite3", "~> 1.4"
5+
6+
gemspec path: ".."

0 commit comments

Comments
 (0)