Merge pull request #426 from tnir/tnir/rubocop-on-actions

Add RuboCop job to Actions
This commit is contained in:
Hiroshi SHIBATA 2022-06-14 16:22:28 +09:00 committed by GitHub
commit 73a21161bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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