Skip to content

Commit

Permalink
Test with rails main
Browse files Browse the repository at this point in the history
  • Loading branch information
zendesk-edytaroz committed Aug 6, 2024
1 parent 35bd093 commit fb9f675
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/rails_main_testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Test against Rails main

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

jobs:
specs:
name: Ruby${{ matrix.ruby }} rails_main test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- '3.3'
env:
BUNDLE_GEMFILE: gemfiles/rails_main.gemfile
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ pkg
mkmf.log
.bundle/config
.bundle/environment.rb
/gemfiles/rails_main.gemfile.lock
6 changes: 6 additions & 0 deletions gemfiles/rails_main.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
source "https://rubygems.org"

gem 'activerecord', github: 'rails/rails', branch: 'main'
gem "sqlite3", "~> 1.4"

gemspec path: ".."

0 comments on commit fb9f675

Please sign in to comment.