opf/openproject

View on GitHub
.github/workflows/rubocop-core.yml

Summary

Maintainability
Test Coverage
name: rubocop

on:
  pull_request:
    branches:
      - dev
      - release/*
    paths:
      - '**.rb'

jobs:
  rubocop:
    name: rubocop
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0
      - uses: ruby/setup-ruby@v1
      - uses: opf/action-rubocop@v2
        with:
          github_token: ${{ secrets.github_token }}
          rubocop_version: gemfile
          rubocop_extensions: rubocop-rails:gemfile rubocop-rspec:gemfile
          reporter: github-pr-check