Skip to content

Commit a1346c5

Browse files
committed
Add rubocop checks
1 parent 675de2c commit a1346c5

File tree

2 files changed

+37
-2
lines changed

2 files changed

+37
-2
lines changed

.github/workflows/linter.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Linter
2+
on: [push]
3+
4+
jobs:
5+
linters:
6+
name: Linters
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
ruby: [ 2.7, 3.0 ]
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
16+
- name: Setup Ruby
17+
uses: ruby/setup-ruby@v1
18+
with:
19+
ruby-version: ${{ matrix.ruby }}
20+
bundler-cache: true
21+
22+
- name: Ruby gem cache
23+
uses: actions/cache@v1
24+
with:
25+
path: vendor/bundle
26+
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
27+
restore-keys: |
28+
${{ runner.os }}-gems-
29+
30+
- name: Install gems
31+
run: |
32+
bundle config path vendor/bundle
33+
bundle install --jobs 4 --retry 3
34+
35+
- name: Run linters
36+
run: |
37+
bundle exec rubocop --parallel

.github/workflows/tests.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,11 @@ on:
88
jobs:
99
tests:
1010
name: Tests
11-
1211
strategy:
1312
fail-fast: false
1413
matrix:
1514
gemfile: [websocket-driver-0.6.x, websocket-driver-0.7.x]
1615
ruby: [2.6, 2.7, 3.0]
17-
1816
runs-on: ubuntu-latest
1917
env:
2018
FERRUM_PROCESS_TIMEOUT: 20

0 commit comments

Comments
 (0)