mirror of
https://github.com/opf/openproject.git
synced 2026-06-13 19:20:00 +00:00
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
name: rubocop
|
|
|
|
on:
|
|
pull_request:
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
|
|
jobs:
|
|
rubocop:
|
|
name: rubocop
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
- name: Set up Ruby
|
|
uses: ruby/setup-ruby@v1
|
|
- name: Run Rubocop
|
|
uses: reviewdog/action-rubocop@v2
|
|
with:
|
|
github_token: ${{ secrets.github_token }}
|
|
rubocop_version: gemfile
|
|
rubocop_extensions: >
|
|
rubocop-capybara:gemfile
|
|
rubocop-factory_bot:gemfile
|
|
rubocop-openproject:gemfile
|
|
rubocop-performance:gemfile
|
|
rubocop-rails:gemfile
|
|
rubocop-rspec:gemfile
|
|
rubocop-rspec_rails:gemfile
|
|
reporter: github-pr-check
|
|
only_changed: true
|
|
# This step can be removed once https://github.com/WizardComputer/action-erblint/pull/2 is merged
|
|
- name: Run bundle install
|
|
run: bundle install
|
|
- name: Run erb-lint
|
|
uses: WizardComputer/action-erblint@v1.0.0
|
|
with:
|
|
github_token: ${{ secrets.github_token }}
|
|
reporter: github-pr-check
|
|
use_bundler: false
|