Skip to content

Commit 148a3b8

Browse files
committed
Add RuboCop job to Actions
Signed-off-by: Takuya Noguchi <[email protected]>
1 parent fc1fdb6 commit 148a3b8

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/lint.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: lint
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- uses: ruby/setup-ruby@v1
11+
with:
12+
ruby-version: '3.0'
13+
bundler-cache: true
14+
- name: Run rubocop
15+
run: bundle exec rubocop

.rubocop.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ AllCops:
66
- doc/**/*.rb
77
- rake.gemspec
88
- bin/*
9+
- vendor/**/*
910

1011
Style/HashSyntax:
1112
Enabled: true

0 commit comments

Comments
 (0)