Skip to content

CI: Set Ruby version in Sorbet job #9

CI: Set Ruby version in Sorbet job

CI: Set Ruby version in Sorbet job #9

Workflow file for this run

name: CI
on: [pull_request]
env:
SORBET_RUBY: 3.4
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:

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

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 12
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