You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
989 B
46 lines
989 B
name: Ruby Linting
|
|
on:
|
|
push:
|
|
branches-ignore:
|
|
- 'dependabot/**'
|
|
- 'renovate/**'
|
|
paths:
|
|
- 'Gemfile*'
|
|
- '.rubocop*.yml'
|
|
- '.ruby-version'
|
|
- 'config/brakeman.ignore'
|
|
- '**/*.rb'
|
|
- '**/*.rake'
|
|
- '.github/workflows/lint-ruby.yml'
|
|
|
|
pull_request:
|
|
paths:
|
|
- 'Gemfile*'
|
|
- '.rubocop*.yml'
|
|
- '.ruby-version'
|
|
- 'config/brakeman.ignore'
|
|
- '**/*.rb'
|
|
- '**/*.rake'
|
|
- '.github/workflows/lint-ruby.yml'
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Clone repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Ruby environment
|
|
uses: ./.github/actions/setup-ruby
|
|
|
|
- name: Set-up RuboCop Problem Matcher
|
|
uses: r7kamura/rubocop-problem-matchers-action@v1
|
|
|
|
- name: Run rubocop
|
|
run: bundle exec rubocop
|
|
|
|
- name: Run brakeman
|
|
if: always() # Run both checks, even if the first failed
|
|
run: bundle exec brakeman
|