Skip to content

Commit 23e3ec4

Browse files
committed
CI: Set Ruby version in Sorbet job
1 parent 50aa489 commit 23e3ec4

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,19 @@ name: CI
22

33
on: [pull_request]
44

5+
env:
6+
SORBET_RUBY: &sorbet '3.4'
7+
58
jobs:
69
test:
710
runs-on: ubuntu-latest
811
strategy:
912
matrix:
10-
ruby-version: [head, 3.4, 3.3, 3.2]
11-
fail-fast: false
13+
ruby-version:
14+
- 'head'
15+
- *sorbet
16+
- '3.3'
17+
- '3.2' fail-fast: false
1218
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
1319
steps:
1420
- uses: actions/checkout@v5
@@ -26,6 +32,7 @@ jobs:
2632
fetch-depth: ${{ env.REPO_FETCH_DEPTH }}
2733
- uses: ruby/setup-ruby@v1
2834
with:
35+
ruby-version: ${{ env.SORBET_RUBY }}
2936
bundler-cache: true
3037
- name: Sorbet
3138
run: bundle exec srb typecheck

0 commit comments

Comments
 (0)