Skip to content
This repository was archived by the owner on Nov 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request rubycdp#215 from rubycdp/linter
Browse files Browse the repository at this point in the history
Add rubocop checks
  • Loading branch information
route authored Nov 10, 2021
2 parents 675de2c + a1346c5 commit 91c399b
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Linter
on: [push]

jobs:
linters:
name: Linters
strategy:
fail-fast: false
matrix:
ruby: [ 2.7, 3.0 ]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Ruby gem cache
uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Install gems
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Run linters
run: |
bundle exec rubocop --parallel
2 changes: 0 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ on:
jobs:
tests:
name: Tests

strategy:
fail-fast: false
matrix:
gemfile: [websocket-driver-0.6.x, websocket-driver-0.7.x]
ruby: [2.6, 2.7, 3.0]

runs-on: ubuntu-latest
env:
FERRUM_PROCESS_TIMEOUT: 20
Expand Down

0 comments on commit 91c399b

Please sign in to comment.