Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ concurrency:
cancel-in-progress: true

env:
RUBY_VERSION_DEFAULT: '4.0' # see https://www.ruby-lang.org/en/downloads/releases/
COVERAGE_DIR: coverage
TESTS_COVERAGE_ARTIFACT: coverage

Expand Down Expand Up @@ -86,3 +87,28 @@ jobs:
with:
project-token: ${{ env.CODACY_PROJECT_TOKEN }}
coverage-reports: '${{ env.TESTS_COVERAGE_ARTIFACT }}_*/coverage.xml'
rubocop:
name: RuboCop
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout Code
# see https://github.com/actions/checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up Ruby
# see https://github.com/ruby/setup-ruby
uses: ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f # v1.310.0
with:
ruby-version: ${{ env.RUBY_VERSION_DEFAULT }}
# intentionally disabled to avoid cache poisoning risks flagged by zizmor
bundler-cache: false
- name: Install Dependencies
run: bundle install
- name: Run RuboCop
# see https://rubocop.org/
run: >
bundle exec rubocop
--format simple
--format github
Loading