mastodon/.github/workflows/lint-ruby.yml
renovate[bot] 0b207fc056
Update actions/checkout digest to d23441a (#39959)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-29 08:54:39 +00:00

50 lines
1.0 KiB
YAML

name: Ruby Linting
on:
merge_group:
push:
branches:
- 'main'
- 'stable-*'
paths:
- 'Gemfile*'
- '.rubocop*.yml'
- '.ruby-version'
- 'bin/rubocop'
- '**/*.rb'
- '**/*.rake'
- '.github/workflows/lint-ruby.yml'
pull_request:
paths:
- 'Gemfile*'
- '.rubocop*.yml'
- '.ruby-version'
- 'bin/rubocop'
- '**/*.rb'
- '**/*.rake'
- '.github/workflows/lint-ruby.yml'
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 15
env:
BUNDLE_ONLY: development
steps:
- name: Clone repository
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
- name: Set up Ruby
uses: ruby/setup-ruby@6e5d382445ae5590b7449d8b3bc8cb1c2c27f617 # v1
with:
bundler-cache: true
- name: Run rubocop
run: bin/rubocop --format github
- name: Run brakeman
if: always() # Run both checks, even if the first failed
run: bin/brakeman