Merge upstream changes up to 5ef26d8fd50081c642b858a82bf0c5431b1c7e83 #396
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: Install native Ruby dependencies | |
run: sudo apt-get install -y libicu-dev libidn11-dev | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: .ruby-version | |
bundler-cache: true | |
- 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 |