Skip to content

Commit b05a89f

Browse files
committed
👷 Add JRuby 10 to CI
1 parent 7c59896 commit b05a89f

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

.github/workflows/current.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
rubygems: default
5555
bundler: default
5656

57-
# jruby-9.4 (targets Ruby 3.1 compatibility)
57+
# jruby-10.0 (targets Ruby 3.4 compatibility)
5858
- ruby: "jruby"
5959
appraisal: "current"
6060
exec_cmd: "rake spec"

.github/workflows/jruby.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ jobs:
7272
- name: Checkout
7373
uses: actions/checkout@v4
7474

75+
# Raw `bundle` will use the BUNDLE_GEMFILE set to matrix.gemfile (i.e. Appraisal.root)
76+
# We need to do this first to get appraisal installed.
77+
# NOTE: This does not use the main Gemfile at all.
7578
- name: Setup Ruby & RubyGems
7679
uses: ruby/setup-ruby@v1
7780
with:
@@ -80,11 +83,6 @@ jobs:
8083
bundler: ${{ matrix.bundler }}
8184
bundler-cache: false
8285

83-
# Raw `bundle` will use the BUNDLE_GEMFILE set to matrix.gemfile (i.e. Appraisal.root)
84-
# We need to do this first to get appraisal installed.
85-
# NOTE: This does not use the main Gemfile at all.
86-
- name: Install Root Appraisal
87-
run: bundle
8886
- name: Appraisal for ${{ matrix.appraisal }}
8987
run: bundle exec appraisal ${{ matrix.appraisal }} bundle
9088
- name: Tests for ${{ matrix.ruby }} via ${{ matrix.exec_cmd }}

Appraisals

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ appraise "ruby-3-3" do
7272
remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch
7373
end
7474

75+
appraise "ruby-3-4" do
76+
gem "mutex_m", "~> 0.2"
77+
gem "stringio", "~> 3.0"
78+
remove_gem "appraisal" # only present because it must be in the gemfile because we target a git branch
79+
end
80+
7581
# Only run security audit on latest Ruby version
7682
appraise "audit" do
7783
gem "mutex_m", "~> 0.2"

gemfiles/ruby_3_4.gemfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# This file was generated by Appraisal
2+
3+
source "https://rubygems.org"
4+
5+
gem "mutex_m", "~> 0.2"
6+
gem "stringio", "~> 3.0"
7+
8+
gemspec path: "../"

0 commit comments

Comments
 (0)