Skip to content

Commit

Permalink
Add standard workflow for running RuboCop
Browse files Browse the repository at this point in the history
  • Loading branch information
timriley committed Aug 7, 2023
1 parent 9b1502e commit bc0198e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# frozen_string_literal: true

# This file is synced from dry-rb/template-gem repo

name: RuboCop

on: [push, pull_request]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
env:
BUNDLE_ONLY: tools

steps:
- uses: actions/checkout@v3

- name: Set up Ruby 3.2
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
bundler-cache: true

- name: Run RuboCop
run: bundle exec rubocop --parallel

0 comments on commit bc0198e

Please sign in to comment.