Skip to content

Add Sorbet to CI

Add Sorbet to CI #4

Workflow file for this run

name: CI
on: [pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: [head, 3.4, 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:
bundler-cache: true
- name: Sorbet
run: bundle exec srb typecheck