Skip to content

Commit a17c309

Browse files
committed
Pin Ruby 4.0.1 and align CI with .ruby-version
Use .ruby-version as the single source of truth for typecheck and release jobs, and add a CI job that runs the suite on the pinned patch version.
1 parent ff7f05b commit a17c309

3 files changed

Lines changed: 20 additions & 4 deletions

File tree

.github/workflows/cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
- uses: ruby/setup-ruby@v1
4545
with:
46-
ruby-version: "3.4"
46+
ruby-version-file: .ruby-version
4747

4848
- uses: oxidize-rb/actions/cross-gem@v1
4949
id: cross-gem
@@ -88,7 +88,7 @@
8888

8989
- uses: oxidize-rb/actions/setup-ruby-and-rust@v1
9090
with:
91-
ruby-version: "3.4"
91+
ruby-version-file: .ruby-version
9292
bundler-cache: true
9393
cargo-cache: false
9494

.github/workflows/ci.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,22 @@ jobs:
4040
run: bundle exec rake
4141
- name: Compile rust ext
4242
run: bundle exec rake compile:release
43+
44+
rspec_ruby_version_file:
45+
name: "RSpec (ruby-version-file)"
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: actions/checkout@v4
49+
- uses: oxidize-rb/actions/setup-ruby-and-rust@v1
50+
with:
51+
ruby-version-file: .ruby-version
52+
rustup-toolchain: stable
53+
bundler-cache: true
54+
cargo-cache: false
55+
- name: Run ruby tests
56+
run: bundle exec rake
57+
- name: Compile rust ext
58+
run: bundle exec rake compile:release
4359
static_type_check:
4460
name: "Type Check"
4561
runs-on: ubuntu-latest
@@ -49,7 +65,7 @@ jobs:
4965
uses: ruby/setup-ruby@v1
5066
with:
5167
bundler-cache: true
52-
ruby-version: 3.3
68+
ruby-version-file: .ruby-version
5369
- name: Run static type checks
5470
run: bundle exec srb tc
5571
notify_on_failure:

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.4.5
1+
4.0.1

0 commit comments

Comments
 (0)