Skip to content

Commit

Permalink
Run Rubocop when opening PR
Browse files Browse the repository at this point in the history
  • Loading branch information
PanosCodes committed Feb 17, 2023
1 parent 3a020d8 commit b1f059b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: RuboCop

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

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

- name: Run rubocop
run: bundle exec rubocop
3 changes: 3 additions & 0 deletions apipie-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ Gem::Specification.new do |s|
s.add_development_dependency "rspec-rails", "~> 3.0"
s.add_development_dependency "rake"
s.add_development_dependency 'rubocop_challenger'
s.add_development_dependency 'rubocop-rails'
s.add_development_dependency 'rubocop-rspec'
s.add_development_dependency 'rubocop-performance'
s.add_development_dependency "simplecov"
s.add_development_dependency "sqlite3"
end

0 comments on commit b1f059b

Please sign in to comment.