Skip to content

Commit

Permalink
Merge pull request #25 from betadots/githubactions2
Browse files Browse the repository at this point in the history
Enable rubocop on CI
  • Loading branch information
bastelfreak authored Apr 7, 2022
2 parents b4a66b8 + 6c1e43c commit 893c71a
Show file tree
Hide file tree
Showing 7 changed files with 791 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,16 @@ jobs:
uses: ludeeus/action-shellcheck@1.1.0
with:
scandir: './bin'
rubocop:
runs-on: ubuntu-latest
env:
BUNDLE_WITHOUT: development:test

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Run tests
run: bundle exec rake rubocop
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# Ignore bundler config.
/.bundle
/vendor
/.vendor

# Ignore the default SQLite database.
/db/*.sqlite3
Expand Down
13 changes: 13 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
inherit_from: .rubocop_todo.yml

require: rubocop-rails

AllCops:
TargetRubyVersion: 2.5
NewCops: enable
Include:
- '**/*.rb'
Exclude:
- vendor/**/*
- .vendor/**/*
Loading

0 comments on commit 893c71a

Please sign in to comment.