.github/workflows/rubocop.yml
name: Lint Ruby
on:
push:
branches:
- master
pull_request:
jobs:
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Ruby 2.6
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- name: Install RuboCop
run: |
gem install rubocop
- name: Run RuboCop
run: |
rubocop -c .rubocop.yml