Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: ci

on:
push:
branches: [ master ]
pull_request:
types: [opened, synchronize, reopened, ready_for_review]

env:
RAILS_ENV: test

jobs:
not-a-draft-pr:
name: Continue if not draft PR
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- run: exit 0

test:
name: Tests for version
needs: not-a-draft-pr
runs-on: ubuntu-latest
timeout-minutes: 5

strategy:
fail-fast: false
matrix:
ruby-version: ['3.3.11', '3.4.9', '4.0.3']

env:
CI_RUBY_VERSION: ${{ matrix.ruby-version }}

steps:
- uses: actions/checkout@v6

- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}

- name: Bundle
run: bundle install

- name: Run tests
run: bundle exec rake test

- name: Run active_record integration tests
run: |
for version in 7.2.3 8.0.5 8.1.3; do
echo -e "\nRunning tests for active_record ${version}\n"

bundle install --gemfile=./gemfiles/active_record_${version}.gemfile

bundle exec appraisal active_record_${version} rake test
done

# This is required to make requiring status checks easy in Github branch protection rules
test-success:
name: Tests
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
needs: test
steps:
- name: Check build matrix status
if: ${{ needs.test.result != 'success' }}
run: exit 1
131 changes: 15 additions & 116 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -23,134 +23,33 @@ appraise "graphviz_1.0.8" do
end

# ActiveRecord integrations
if RUBY_VERSION < "1.9.1"
appraise "active_record_2.0.0" do
gem "sqlite3-ruby", "1.3.1", :platform => [:ruby, :mswin, :mingw]
gem "activerecord", "2.0.0"
gem "activerecord-jdbcsqlite3-adapter", "1.2.7", :platform => :jruby
end

appraise "active_record_2.0.5" do
gem "sqlite3-ruby", "1.3.1", :platform => [:ruby, :mswin, :mingw]
gem "activerecord", "2.0.5"
gem "activerecord-jdbcsqlite3-adapter", "1.2.7", :platform => :jruby
end

appraise "active_record_2.1.0" do
gem "sqlite3-ruby", "1.3.1", :platform => [:ruby, :mswin, :mingw]
gem "activerecord", "2.1.0"
gem "activerecord-jdbcsqlite3-adapter", "1.2.7", :platform => :jruby
end

appraise "active_record_2.1.2" do
gem "sqlite3-ruby", "1.3.1", :platform => [:ruby, :mswin, :mingw]
gem "activerecord", "2.1.2"
gem "activerecord-jdbcsqlite3-adapter", "1.2.7", :platform => :jruby
end

appraise "active_record_2.2.3" do
gem "sqlite3-ruby", "1.3.1", :platform => [:ruby, :mswin, :mingw]
gem "activerecord", "2.2.3"
gem "activerecord-jdbcsqlite3-adapter", "1.2.7", :platform => :jruby
end
end

if RUBY_VERSION < "1.9.2"
appraise "active_record_2.3.5" do
gem "sqlite3-ruby", "1.3.1", :platform => [:ruby, :mswin, :mingw]
gem "activerecord", "2.3.5"
gem "activerecord-jdbcsqlite3-adapter", "1.2.7", :platform => :jruby
end
end

if RUBY_VERSION < "2.0.0"
appraise "active_record_2.3.12" do
gem "sqlite3-ruby", "1.3.1", :platform => [:ruby, :mswin, :mingw]
gem "activerecord", "2.3.12"
gem "activerecord-jdbcsqlite3-adapter", "1.2.7", :platform => :jruby
end
end

if RUBY_VERSION > "1.8.6" && RUBY_PLATFORM != "java"
appraise "active_record_3.0.0" do
gem "sqlite3-ruby", "1.3.1", :platform => [:ruby, :mswin, :mingw]
gem "activerecord", "3.0.0"
gem "activerecord-jdbcsqlite3-adapter", "1.2.7", :platform => :jruby
end
appraise "active_record_7.2.3" do
gem "sqlite3", "2.9.4"
gem "activerecord", "7.2.3"
end

if RUBY_VERSION > "1.8.6"
appraise "active_record_3.0.5" do
gem "sqlite3-ruby", "1.3.1", :platform => [:ruby, :mswin, :mingw]
gem "activerecord", "3.0.5"
gem "activerecord-jdbcsqlite3-adapter", "1.2.7", :platform => :jruby
end
appraise "active_record_8.0.5" do
gem "sqlite3", "2.9.4"
gem "activerecord", "8.0.5"
end

if RUBY_VERSION > "1.8.6" && RUBY_VERSION != "1.9.1" && RUBY_VERSION < "2.0.0"
appraise "active_record_3.1.1" do
gem "sqlite3", "1.3.6", :platform => [:ruby, :mswin, :mingw]
gem "activerecord", "3.1.1"
gem "activerecord-jdbcsqlite3-adapter", "1.2.7", :platform => :jruby
end

appraise "active_record_3.2.12" do
gem "sqlite3", "1.3.6", :platform => [:ruby, :mswin, :mingw]
gem "activerecord", "3.2.12"
gem "activerecord-jdbcsqlite3-adapter", "1.2.7", :platform => :jruby
end
appraise "active_record_8.1.3" do
gem "sqlite3", "2.9.4"
gem "activerecord", "8.1.3"
end

if RUBY_VERSION > "1.8.6" && RUBY_VERSION != "1.9.1"
appraise "active_record_3.2.13.rc1" do
gem "sqlite3", "1.3.6", :platform => [:ruby, :mswin, :mingw]
gem "activerecord", "3.2.13.rc1"
gem "activerecord-jdbcsqlite3-adapter", "1.2.7", :platform => :jruby
end
appraise "active_model_7.2.3" do
gem "activemodel", "7.2.3"
end

if RUBY_VERSION > "1.9.2"
appraise "active_record_4.0.0" do
gem "sqlite3", "1.3.6"
gem "activerecord", "4.0.0.beta1", :git => "git://github.com/rails/rails.git", :ref => "92d6dac"
gem "activerecord-deprecated_finders", "0.0.3"
gem "protected_attributes", "1.0.0"
gem "rails-observers", "0.1.1"
end
appraise "active_model_8.0.5" do
gem "activemodel", "8.0.5"
end

# ActiveModel integrations
if RUBY_VERSION > "1.8.6" && RUBY_VERSION < "2.0.0"
appraise "active_model_3.0.0" do
gem "activemodel", "3.0.0"
end

appraise "active_model_3.0.5" do
gem "activemodel", "3.0.5"
end

appraise "active_model_3.1.1" do
gem "activemodel", "3.1.1"
end

appraise "active_model_3.2.12" do
gem "activemodel", "3.2.12"
end
appraise "active_model_8.1.3" do
gem "activemodel", "8.1.3"
end

if RUBY_VERSION > "1.8.6"
appraise "active_model_3.2.13.rc1" do
gem "activemodel", "3.2.13.rc1"
end
end

if RUBY_VERSION > "1.9.2"
appraise "active_model_4.0.0" do
gem "activemodel", "4.0.0.beta", :git => "git://github.com/rails/rails.git", :ref => "4e286bf"
gem "rails-observers", "0.1.1"
gem "protected_attributes", "1.0.0"
end
end

# MongoMapper integrations
if RUBY_VERSION > "1.8.6" && RUBY_VERSION < "1.9.1"
Expand Down
35 changes: 0 additions & 35 deletions gemfiles/active_model_3.0.0.gemfile.lock

This file was deleted.

35 changes: 0 additions & 35 deletions gemfiles/active_model_3.0.5.gemfile.lock

This file was deleted.

36 changes: 0 additions & 36 deletions gemfiles/active_model_3.1.1.gemfile.lock

This file was deleted.

7 changes: 0 additions & 7 deletions gemfiles/active_model_3.2.12.gemfile

This file was deleted.

36 changes: 0 additions & 36 deletions gemfiles/active_model_3.2.12.gemfile.lock

This file was deleted.

7 changes: 0 additions & 7 deletions gemfiles/active_model_3.2.13.rc1.gemfile

This file was deleted.

Loading