Skip to content

Commit

Permalink
Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
stejskalleos committed Sep 19, 2023
1 parent 4386dd2 commit 74434f2
Show file tree
Hide file tree
Showing 4 changed files with 333 additions and 69 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,20 @@ env:
DATABASE_URL: postgresql://postgres:@localhost/test
DATABASE_CLEANER_ALLOW_REMOTE_DATABASE_URL: true
jobs:
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- name: Run rubocop
run: bundle exec rubocop
test_ruby:
runs-on: ubuntu-latest
needs: rubocop
services:
postgres:
image: postgres:12.1
Expand Down
5 changes: 3 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ inherit_from:
- .rubocop_todo.yml

AllCops:
TargetRubyVersion: 2.5
TargetRailsVersion: 5.2
TargetRubyVersion: 2.7
TargetRailsVersion: 6.1
NewCops: enable
Include:
- 'app/views/api/**/*.rabl'
- 'app/**/*.rb'
Expand Down
Loading

0 comments on commit 74434f2

Please sign in to comment.