Skip to content

Commit

Permalink
Run CI against minimum supported Sorbet version
Browse files Browse the repository at this point in the history
Extract minimum Sorbet version from gemspec and run against that to make
sure we're actually compatible.
  • Loading branch information
sambostock committed Nov 8, 2022
1 parent 0fc3114 commit 1937577
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
- Gemfile
- gemfiles/Gemfile-rails-6-1
- gemfiles/Gemfile-rails-main
- gemfiles/Gemfile-sorbet-minimum
include:
- gemfile: gemfiles/Gemfile-rails-main
experimental: true
Expand Down
13 changes: 13 additions & 0 deletions gemfiles/Gemfile-sorbet-minimum
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"

0 comments on commit 1937577

Please sign in to comment.