Skip to content

Commit

Permalink
Add RuboCop job to Actions
Browse files Browse the repository at this point in the history
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
  • Loading branch information
tnir committed Jun 14, 2022
1 parent fc1fdb6 commit 9f24301
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: lint

on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
bundler-cache: true
- name: Run rubocop
run: bundle exec rubocop
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ AllCops:
- doc/**/*.rb
- rake.gemspec
- bin/*
- vendor/**/*

Style/HashSyntax:
Enabled: true
Expand Down

0 comments on commit 9f24301

Please sign in to comment.