Skip to content

Commit

Permalink
tweaks to github actions testing (for 7.0, 7.1, 7.2, 8.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
timdiggins committed Nov 9, 2024
1 parent d9ebc85 commit dfbf24e
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 10 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
name: RSpec Test Matrix
on: push
on:
push:
pull_request:

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rails: ['~> 7.1.0', '~> 7.0.0']
ruby: ['3.1', '3.2', '3.3']
rails: ["7.0", "7.1", "7.2", "8.0"]
ruby: ["3.1", "3.2", "3.3"]
env:
RAILS_VERSION: ${{ matrix.rails }}
BUNDLE_GEMFILE: "spec/gemfiles/rails_${{ matrix.rails }}.gemfile"
steps:
- uses: actions/checkout@v4

- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # install gems and cache

- run: bundle install
- run: bundle exec rspec
7 changes: 1 addition & 6 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
source 'https://rubygems.org'

# Specify your gem's dependencies in active_record_union.gemspec
gemspec

gem 'rails', ENV.fetch('RAILS_VERSION')
gem 'pg'
gem 'sqlite3', '~> 1.3'
eval_gemfile File.expand_path('./rails_8.0.gemfile', __dir__)
17 changes: 17 additions & 0 deletions rails_7.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# frozen_string_literal: true

source 'https://rubygems.org'

# Specify your gem's dependencies in active_record_union.gemspec
gemspec

gem 'rails', '~> 7.0.0'

# https://github.com/rails/rails/blob/v7.0.2/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L13
gem 'sqlite3', '~> 1.4'

# https://github.com/rails/rails/blob/v7.0.2/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb#L4
gem 'pg', '~> 1.1'

# https://github.com/rails/rails/blob/v7.0.2/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb#L6
gem 'mysql2', '~> 0.5'
17 changes: 17 additions & 0 deletions rails_7.1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# frozen_string_literal: true

source 'https://rubygems.org'

# Specify your gem's dependencies in active_record_union.gemspec
gemspec

gem 'rails', '~> 7.1.0'

# https://github.com/rails/rails/blob/v7.1.2/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L13
gem 'sqlite3', '~> 1.4'

# https://github.com/rails/rails/blob/v7.1.2/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb#L4
gem 'pg', '~> 1.1'

# https://github.com/rails/rails/blob/v7.1.2/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb#L6
gem 'mysql2', '~> 0.5'
17 changes: 17 additions & 0 deletions rails_7.2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# frozen_string_literal: true

source 'https://rubygems.org'

# Specify your gem's dependencies in active_record_union.gemspec
gemspec

gem 'rails', '~> 7.2.0'

# https://github.com/rails/rails/blob/v7.2.0/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L13
gem 'sqlite3', '>= 1.4'

# https://github.com/rails/rails/blob/v7.2.0/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb#L4
gem 'pg', '~> 1.1'

# https://github.com/rails/rails/blob/v7.2.0/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb#L6
gem 'mysql2', '~> 0.5'
17 changes: 17 additions & 0 deletions rails_8.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# frozen_string_literal: true

source 'https://rubygems.org'

# Specify your gem's dependencies in active_record_union.gemspec
gemspec

gem 'rails', '~> 8.0.0'

# https://github.com/rails/rails/blob/main/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L13
gem 'sqlite3', '>= 2.1'

# https://github.com/rails/rails/blob/main/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb#L4
gem 'pg', '~> 1.1'

# https://github.com/rails/rails/blob/main/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb#L6
gem 'mysql2', '~> 0.5'

0 comments on commit dfbf24e

Please sign in to comment.