Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Add rubocop action

Oliver Günther563d3668184c
diff --git a/.github/workflows/rubocop-core.yml b/.github/workflows/rubocop-core.yml
new file mode 100644
index 00000000000..664ccf54757
--- /dev/null
+++ b/.github/workflows/rubocop-core.yml
@@ -0,0 +1,24 @@
+name: Core/rubocop
+on:
+ pull_request:
+ branches:
+ - dev
+ - release/*
+ paths:
+ - '**.rb'
+
+jobs:
+ rubocop:
+ name: runner / 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