18 lines
342 B
YAML
18 lines
342 B
YAML
|
name: RuboCop
|
||
|
|
||
|
on: [push, pull_request]
|
||
|
|
||
|
jobs:
|
||
|
lint:
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
- name: Set up Ruby
|
||
|
uses: ruby/setup-ruby@v1
|
||
|
with:
|
||
|
ruby-version: 2.7
|
||
|
bundler-cache: true # 'bundle install' and cache
|
||
|
- name: Run RuboCop
|
||
|
run: bundle exec rubocop --parallel
|