Skip to content

Commit

Permalink
Add rubocop github action step
Browse files Browse the repository at this point in the history
  • Loading branch information
jusleg committed Aug 13, 2020
1 parent e0b7b84 commit 6c910c1
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/rubocop_lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Lint 💎

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Ruby 2.6 is
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Run Rubocop linter
run: |
gem install bundler
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
bundle exec rubocop

0 comments on commit 6c910c1

Please sign in to comment.