Skip to content

Fix linting and type checks #170

Fix linting and type checks

Fix linting and type checks #170

Workflow file for this run

name: Build
on:
- push
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.2
bundler-cache: true
- name: Lint
run: |
gem install rubocop -v 1.50.2
gem install rubocop-rspec -v 2.20.0
gem install rubocop-performance -v 1.15
rubocop
type-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.1
bundler-cache: true
- name: RBS type checking with Steep
run: |
gem install steep -v 1.4.0
steep check --log-level=fatal
build-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- '2.5'
- '3.2.2'
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Test
run: bundle exec rspec