Skip to content

Commit 6f668f8

Browse files
authored
Fix CI jobs and add Ruby 3.3 to CI matrix (#150)
* Fix CI jobs when installing Rails edge * Fix CI jobs when using Ruby >= 3.4 * Try upgrading rubygems using setup/ruby * Add Ruby 3.3 to CI matrix * Remove .tools-version file
1 parent d0dad36 commit 6f668f8

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
os: ['ubuntu-latest', 'macos-latest']
13-
ruby-version: ['2.7', '3.0', '3.1', '3.2', 'head']
13+
ruby-version: ['2.7', '3.0', '3.1', '3.2', '3.3', 'head']
1414
runs-on: ${{ matrix.os }}
1515
steps:
1616
- uses: actions/checkout@v4
@@ -20,12 +20,10 @@ jobs:
2020
with:
2121
ruby-version: ${{ matrix.ruby-version }}
2222
bundler-cache: false
23-
24-
- name: Update RubyGems
25-
run: gem update --system
23+
rubygems: latest
2624

2725
- name: Install dependencies
28-
run: bundle install
26+
run: bundle install --jobs 4
2927

3028
- name: Appraisals install
3129
run: bundle exec appraisal install
@@ -45,7 +43,7 @@ jobs:
4543
bundler-cache: false
4644

4745
- name: Install dependencies
48-
run: bundle install
46+
run: bundle install --jobs 4
4947

5048
- name: Rubocop
5149
run: bundle exec rubocop

Appraisals

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
# frozen_string_literal: true
22

3-
appraise "rails-6" do
4-
gem "rails", "~> 6"
3+
if RUBY_VERSION < "3.4.0"
4+
appraise "rails-6" do
5+
gem "rails", "~> 6"
6+
end
57
end
68

79
appraise "rails-7" do
810
gem "rails", "~> 7"
911
end
1012

11-
appraise "rails-edge" do
12-
gem "rails", github: "rails/rails"
13+
if RUBY_VERSION >= "3.1.0"
14+
appraise "rails-edge" do
15+
gem "rails", github: "rails/rails"
16+
end
1317
end

0 commit comments

Comments
 (0)