Skip to content

CI: Set Ruby version in Sorbet job #10

CI: Set Ruby version in Sorbet job

CI: Set Ruby version in Sorbet job #10

Workflow file for this run

name: CI

Check failure on line 1 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

(Line: 13, Col: 30): Unrecognized named-value: 'env'. Located at position 1 within expression: env.SORBET_RUBY
on: [pull_request]
env:
SORBET_RUBY: 3.4
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: [head, '${{ env.SORBET_RUBY }}', 3.3, 3.2]
fail-fast: false
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
steps:
- uses: actions/checkout@v5
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- run: bundle install
- run: bundle exec rspec
sorbet:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: ${{ env.REPO_FETCH_DEPTH }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.SORBET_RUBY }}
bundler-cache: true
- name: Sorbet
run: bundle exec srb typecheck