Skip to content

[Ruby] refactor: Introduce rubocop into CI pipeline #4500

[Ruby] refactor: Introduce rubocop into CI pipeline

[Ruby] refactor: Introduce rubocop into CI pipeline #4500

Workflow file for this run

name: test-ruby
on:
push:
branches:
- main
- renovate/**
pull_request:
branches:
- main
workflow_call:
jobs:
# TODO: LH - Implement this when ruby version for html-formatter becomes a minimum of v3.0
# This will save a lot of aggravation
# rubocop:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: ruby/setup-ruby@v1
# with:
# ruby-version: '2.6'
# bundler-cache: true
# - run: bundle exec rubocop
test-ruby:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
ruby: ['2.7', '3.0', '3.1', '3.2', '3.3']
include:
- os: macos-latest
ruby: '3.3'
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/prepare
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
working-directory: ruby
- run: bundle exec rake
working-directory: ruby