Skip to content

Add new Rubocops and correct them (#1572) #1366

Add new Rubocops and correct them (#1572)

Add new Rubocops and correct them (#1572) #1366

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
rails_version: [7.1.3.4]
ruby: ["3.1", "3.2", "3.3"]
env:
RAILS_VERSION: ${{ matrix.rails_version }}
steps:
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
bundler: latest
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies with Rails ${{ matrix.rails_version }}
run: bundle install
- name: Run tests
run: bundle exec rake ci
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Ruby and gems
uses: ruby/setup-ruby@v1
with:
bundler: latest
ruby-version: 3.2
- name: Install dependencies with Bundler
run: bundle install
- name: Install dependencies with yarn
run: yarn install
- name: Lint Ruby files
run: bundle exec rake rubocop eslint