Add RuboCop job to Actions

Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
This commit is contained in:
Takuya Noguchi 2022-05-10 11:52:01 +00:00
parent 86d7ad9b7b
commit 86bb028ade
2 changed files with 17 additions and 0 deletions

16
.github/workflows/lint.yml vendored Normal file
View File

@ -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

View File

@ -6,6 +6,7 @@ AllCops:
- doc/**/*.rb
- rake.gemspec
- bin/*
- vendor/**/*
Style/HashSyntax:
Enabled: true