Skip to content

Commit

Permalink
Run RuboCop on GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mogest committed Jun 16, 2024
1 parent 74521ef commit 85a0cde
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: RuboCop

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true

- name: Install gems
run: |
bundle config path vendor/bundle
bundle install
- name: Run RuboCop
run: bundle exec rubocop --parallel
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ gemspec

gem 'rake', '~> 13.0'
gem 'rspec', '~> 3.0'
gem 'rubocop', '~> 1.64'

0 comments on commit 85a0cde

Please sign in to comment.