Skip to content

Commit 1937577

Browse files
committed
Run CI against minimum supported Sorbet version
Extract minimum Sorbet version from gemspec and run against that to make sure we're actually compatible.
1 parent 0fc3114 commit 1937577

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
- Gemfile
4040
- gemfiles/Gemfile-rails-6-1
4141
- gemfiles/Gemfile-rails-main
42+
- gemfiles/Gemfile-sorbet-minimum
4243
include:
4344
- gemfile: gemfiles/Gemfile-rails-main
4445
experimental: true

gemfiles/Gemfile-sorbet-minimum

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# frozen_string_literal: true
2+
3+
# Extract minimum supported version from gemspec
4+
minimum_sorbet_version = File.read("tapioca.gemspec")[
5+
# spec.add_dependency("sorbet-static-and-runtime", ">= 1.2.3456")
6+
# ^^^^^^^^
7+
/"sorbet-static-and-runtime", ">= ([^"]+)"/,
8+
1,
9+
]
10+
11+
gem("sorbet-static-and-runtime", minimum_sorbet_version)
12+
13+
eval_gemfile "../Gemfile"

0 commit comments

Comments
 (0)