Run RuboCop using GitHub Actions

This commit is contained in:
Yasuo Honda 2020-12-23 16:00:32 +09:00
parent 7eba779fb2
commit e083efdc50
1 changed files with 20 additions and 0 deletions

20
.github/workflows/rubocop.yml vendored Normal file
View File

@ -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