Skip to content

Commit 9e5d0a2

Browse files
committed
ci: run rubocop
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
1 parent 188b9c5 commit 9e5d0a2

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/ruby.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ concurrency:
1919
cancel-in-progress: true
2020

2121
env:
22+
RUBY_VERSION_DEFAULT: '4.0' # see https://www.ruby-lang.org/en/downloads/releases/
2223
COVERAGE_DIR: coverage
2324
TESTS_COVERAGE_ARTIFACT: coverage
2425

@@ -78,3 +79,23 @@ jobs:
7879
with:
7980
project-token: ${{ env.CODACY_PROJECT_TOKEN }}
8081
coverage-reports: '${{ env.TESTS_COVERAGE_ARTIFACT }}_*/coverage.xml'
82+
rubocop:
83+
name: RuboCop
84+
runs-on: ubuntu-latest
85+
timeout-minutes: 10
86+
steps:
87+
- name: Checkout Code
88+
# see https://github.com/actions/checkout
89+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
90+
- name: Set up Ruby
91+
# see https://github.com/ruby/setup-ruby
92+
uses: ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f # v1.310.0
93+
with:
94+
ruby-version: ${{ env.RUBY_VERSION_DEFAULT }}
95+
bundler-cache: true
96+
- name: Run RuboCop
97+
# see https://rubocop.org/
98+
run: >
99+
bundle exec rubocop
100+
--format simple
101+
--format github

0 commit comments

Comments
 (0)