-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run CI against minimum supported Sorbet version
Extract minimum Sorbet version from gemspec and run against that to make sure we're actually compatible.
- Loading branch information
1 parent
0fc3114
commit 1937577
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# frozen_string_literal: true | ||
|
||
# Extract minimum supported version from gemspec | ||
minimum_sorbet_version = File.read("tapioca.gemspec")[ | ||
# spec.add_dependency("sorbet-static-and-runtime", ">= 1.2.3456") | ||
# ^^^^^^^^ | ||
/"sorbet-static-and-runtime", ">= ([^"]+)"/, | ||
1, | ||
] | ||
|
||
gem("sorbet-static-and-runtime", minimum_sorbet_version) | ||
|
||
eval_gemfile "../Gemfile" |