Skip to content

Commit a7ccf85

Browse files
committed
add a new ci job to run a linter
1 parent bc8bb3f commit a7ccf85

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/lint.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: lint
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
lint:
14+
name: lint
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: checkout
19+
uses: actions/checkout@v4
20+
21+
- uses: ruby/setup-ruby@f2f42b7848feff522ffa488a5236ba0a73bccbdd
22+
with:
23+
bundler-cache: true
24+
25+
- name: lint
26+
run: bundle exec rubocop -c .rubocop.yml lib/ test/

0 commit comments

Comments
 (0)