Skip to content

Commit

Permalink
ci: adds rubocop step
Browse files Browse the repository at this point in the history
  • Loading branch information
wbotelhos committed May 18, 2022
1 parent bcbb49f commit f2a4ba4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: RuboCop

on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Ruby and Bundle Install
uses: ruby/setup-ruby@v1

with:
bundler-cache: true
ruby-version: '2.7'

- name: RuboCop
run: bundle exec rubocop --parallel
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: CI
name: Tests
on: [push]

jobs:
build:
if: "!contains(github.event.head_commit.message, 'ci skip')"
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit f2a4ba4

Please sign in to comment.