Skip to content

Commit 0e80b60

Browse files
committed
chore(ruby): fix rubocop errors and add new workflow for linting checks
1 parent 316fcf6 commit 0e80b60

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# .github/workflows/lint.yml
2+
3+
name: RuboCop Linter
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
pull_request:
10+
11+
jobs:
12+
lint:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Check out code
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Ruby
20+
uses: ruby/setup-ruby@v1
21+
with:
22+
ruby-version-file: '.ruby-version'
23+
24+
bundler-cache: true
25+
26+
- name: Run RuboCop
27+
run: bundle exec rubocop

0 commit comments

Comments
 (0)