Skip to content

Rubocop CI, autocorrect, and new todo #17

Rubocop CI, autocorrect, and new todo

Rubocop CI, autocorrect, and new todo #17

Workflow file for this run

name: CI
on:
pull_request:
branches:
- master
env:
ruby_version: 3.3
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: [2.5, 2.6, 2.7, '3.0', 3.1, 3.2, 3.3,
jruby-9.2, jruby-9.3, jruby-9.4]
steps:
- uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Tests
run: ENV=CI bundle exec rake spec
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.ruby_version }}
bundler-cache: true
- name: Rubocop
run: ENV=CI bundle exec rubocop