Run RuboCop using GitHub Actions
This commit is contained in:
parent
7eba779fb2
commit
e083efdc50
|
@ -0,0 +1,20 @@
|
|||
name: rubocop
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Ruby
|
||||
uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: 2.7.2
|
||||
- name: Install gems
|
||||
run: bundle install --jobs 4 --retry 3
|
||||
- name: Run RuboCop
|
||||
run: bundle exec rubocop --parallel
|
Loading…
Reference in New Issue