This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2023-01-29 15:39:31 -08:00
|
|
|
name: Ruby Linting
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches-ignore:
|
|
|
|
- 'dependabot/**'
|
|
|
|
paths:
|
|
|
|
- 'Gemfile*'
|
2023-02-15 22:33:50 -08:00
|
|
|
- '.rubocop*.yml'
|
|
|
|
- '.ruby-version'
|
2023-01-29 15:39:31 -08:00
|
|
|
- '**/*.rb'
|
|
|
|
- '**/*.rake'
|
|
|
|
- '.github/workflows/lint-ruby.yml'
|
|
|
|
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- 'Gemfile*'
|
2023-02-15 22:33:50 -08:00
|
|
|
- '.rubocop*.yml'
|
|
|
|
- '.ruby-version'
|
2023-01-29 15:39:31 -08:00
|
|
|
- '**/*.rb'
|
|
|
|
- '**/*.rake'
|
|
|
|
- '.github/workflows/lint-ruby.yml'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint:
|
|
|
|
runs-on: ubuntu-latest
|
2023-02-15 22:33:50 -08:00
|
|
|
|
2023-01-29 15:39:31 -08:00
|
|
|
steps:
|
2023-02-15 22:33:50 -08:00
|
|
|
- name: Clone repository
|
2023-01-29 15:39:31 -08:00
|
|
|
uses: actions/checkout@v3
|
2023-02-15 22:33:50 -08:00
|
|
|
|
|
|
|
- name: Install native Ruby dependencies
|
|
|
|
run: sudo apt-get install -y libicu-dev libidn11-dev
|
|
|
|
|
|
|
|
- name: Set up Ruby
|
|
|
|
uses: ruby/setup-ruby@v1
|
2023-01-29 15:39:31 -08:00
|
|
|
with:
|
2023-02-15 22:33:50 -08:00
|
|
|
ruby-version: .ruby-version
|
|
|
|
bundler-cache: true
|
2023-01-29 15:39:31 -08:00
|
|
|
|
2023-02-15 22:33:50 -08:00
|
|
|
- name: Set-up RuboCop Problem Matcher
|
2023-01-29 15:39:31 -08:00
|
|
|
uses: r7kamura/rubocop-problem-matchers-action@v1
|
|
|
|
|
|
|
|
- name: Run rubocop
|
2023-02-15 22:33:50 -08:00
|
|
|
run: bundle exec rubocop
|