diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d786f21..59ead51 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,8 @@ jobs: strategy: matrix: ruby: - - "3.0.6" + - "3.0.7" + - "3.1.5" steps: - uses: actions/checkout@v2 - name: Set up Ruby @@ -28,7 +29,8 @@ jobs: strategy: matrix: ruby: - - "3.0.6" + - "3.0.7" + - "3.1.5" steps: - uses: actions/checkout@v2 - name: Set up Ruby diff --git a/test/rails_test.rb b/test/rails_test.rb index 9f081f5..73d54f4 100644 --- a/test/rails_test.rb +++ b/test/rails_test.rb @@ -6,9 +6,8 @@ require 'open3' RAILS_VERSIONS = %w[ - 6.0.6.1 - 6.1.7.6 - 7.0.8 + 6.1.7.7 + 7.0.8.1 ].freeze RAILS_FLAGS = %w[ @@ -51,8 +50,10 @@ def setup Dir.chdir(TMP_RAILS_ROOT) do tmp_version_root = "rails_#{rails_version.gsub('.', '_')}" FileUtils.remove_dir(tmp_version_root) if Dir.exist?(tmp_version_root) - run_command('gem', 'install', 'rails', '--version', rails_version) + run_command('gem', 'install', 'rails', '--version', rails_version, '--force') run_command('rails', "_#{rails_version}_", 'new', *RAILS_FLAGS, tmp_version_root) + raise "Rails #{rails_version} app creation failed" unless Dir.exist?(tmp_version_root) + Dir.chdir(tmp_version_root) do File.write('Gemfile', "gem 'diffcrypt', path: '../../..'", mode: 'a') run_command('bundle', 'install')