From 3854accb4fd0dd968e589f3a558721279fcaa2f7 Mon Sep 17 00:00:00 2001 From: Svyatoslav Kryukov Date: Thu, 28 Nov 2024 15:35:41 +0300 Subject: [PATCH] Add Rails 8.0 to the CI pipeline --- .github/workflows/generators.yml | 2 -- .github/workflows/push.yml | 16 ++++++++++++++-- Gemfile | 2 +- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/generators.yml b/.github/workflows/generators.yml index cde5d4ec..7c8e5ae8 100644 --- a/.github/workflows/generators.yml +++ b/.github/workflows/generators.yml @@ -47,8 +47,6 @@ jobs: - name: Run generator tests run: bundle exec rspec --tag type:generator - env: - RAILS_VERSION: ${{ matrix.rails }} - name: Set up Node uses: actions/setup-node@v4 diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index cf1fb38a..d60c964c 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -33,8 +33,17 @@ jobs: strategy: fail-fast: false matrix: - ruby: ['3.1', '3.2', '3.3'] - rails: ['6.1', '7.0', '7.1', '7.2'] + ruby: ['3.0', '3.1', '3.2', '3.3'] + rails: ['6.1', '7.0', '7.1', '7.2', '8.0'] + exclude: + - ruby: '3.0' + rails: '8.0' + - ruby: '3.1' + rails: '8.0' + - ruby: '3.0' + rails: '7.2' + - ruby: '3.1' + rails: '7.2' runs-on: ubuntu-latest name: Test against Ruby ${{ matrix.ruby }} / Rails ${{ matrix.rails }} @@ -54,6 +63,9 @@ jobs: uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} + # Use the latest version of RubyGems with Ruby 3.0 to avoid: + # https://bugs.ruby-lang.org/issues/19371 + rubygems: ${{ startsWith(matrix.ruby-version, '3.0') && 'latest' || 'default' }} bundler-cache: true env: RAILS_VERSION: ${{ matrix.rails }} diff --git a/Gemfile b/Gemfile index e1b35728..191756a6 100644 --- a/Gemfile +++ b/Gemfile @@ -5,7 +5,7 @@ source 'https://rubygems.org' # Specify your gem's dependencies in inertia_rails.gemspec gemspec -version = ENV['RAILS_VERSION'] || '7.2' +version = ENV['RAILS_VERSION'] || '8.0' gem 'rails', "~> #{version}.0" gem 'bundler', '~> 2.0'