From e86644e55b45d64c1b32eec5c7f82f35eae18582 Mon Sep 17 00:00:00 2001 From: Orien Madgwick <497874+orien@users.noreply.github.com> Date: Sun, 8 Oct 2023 11:32:52 +1100 Subject: [PATCH] CI: add Rails 7.1 to the build matrix --- .github/workflows/ci-workflow.yml | 2 +- spec/support/gemfiles/Gemfile.rails-7.1.x | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 spec/support/gemfiles/Gemfile.rails-7.1.x diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/ci-workflow.yml index b6bfb8b..160dd2b 100644 --- a/.github/workflows/ci-workflow.yml +++ b/.github/workflows/ci-workflow.yml @@ -6,7 +6,7 @@ jobs: strategy: matrix: ruby: ['3.0', '3.1', '3.2'] - gemfile: [Gemfile.rails-6.1.x, Gemfile.rails-7.0.x] + gemfile: [Gemfile.rails-6.1.x, Gemfile.rails-7.0.x, Gemfile.rails-7.1.x] db: [mysql, postgres, sqlite] env: BUNDLE_GEMFILE: ${{ github.workspace }}/spec/support/gemfiles/${{ matrix.gemfile }} diff --git a/spec/support/gemfiles/Gemfile.rails-7.1.x b/spec/support/gemfiles/Gemfile.rails-7.1.x new file mode 100644 index 0000000..7be035d --- /dev/null +++ b/spec/support/gemfiles/Gemfile.rails-7.1.x @@ -0,0 +1,9 @@ +source 'https://rubygems.org' + +gemspec path: '../../../' + +gem 'activerecord', '~> 7.1.0' + +# Rails imposed mysql2 version contraints +# https://github.com/rails/rails/blob/7-1-stable/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb#L6 +gem 'mysql2', '~> 0.5'