Skip to content

0.13.1: Fix Ruby 2.x compatibility #16

0.13.1: Fix Ruby 2.x compatibility

0.13.1: Fix Ruby 2.x compatibility #16

Workflow file for this run

name: Lint Ruby
on:
push:
branches:
- '**'
tags-ignore:
- 'v*'
paths:
- "gemfiles/*"
- "Gemfile"
- "**/*.rb"
- "**/*.gemspec"
- ".github/workflows/lint.yml"
pull_request:
paths:
- "gemfiles/*"
- "Gemfile"
- "**/*.rb"
- "**/*.gemspec"
- ".github/workflows/lint.yml"
jobs:
rubocop:
# Skip running tests for local pull requests (use push event instead), run only for foreign ones
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login != github.event.pull_request.base.repo.owner.login
name: RuboCop
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
bundler-cache: true
- name: Lint Ruby code with RuboCop
run: |
bundle exec rubocop