Skip to content

Commit 73a2116

Browse files
authored
Merge pull request ruby#426 from tnir/tnir/rubocop-on-actions
Add RuboCop job to Actions
2 parents 86d7ad9 + 86bb028 commit 73a2116

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.github/workflows/lint.yml

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

.rubocop.yml

+1
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)