Skip to content

Commit f0a6baf

Browse files
committed
Github Actions: add linter workflow
1 parent ecf6ae1 commit f0a6baf

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/linters.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Linters
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
linters:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
- name: Set up Ruby
17+
uses: ruby/setup-ruby@v1
18+
with:
19+
ruby-version: '2.7'
20+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
21+
- name: Install Rubocop
22+
run: gem install rubocop rubocop-rspec
23+
- name: Check code
24+
run: rubocop

0 commit comments

Comments
 (0)