Avoid false positive from .try(:internal_resource)
(#980)
#2117
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: Lint | |
on: | |
pull_request: | |
branches: | |
- '**' | |
push: | |
branches: | |
- main | |
jobs: | |
rubocop: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache | |
uses: actions/[email protected] | |
with: | |
path: vendor/bundle | |
key: 2.7.2 | |
- name: Setup Ruby | |
uses: ruby/[email protected] | |
with: | |
ruby-version: 2.7.2 | |
- name: Install dependencies | |
run: | | |
bundle config path vendor/bundle | |
bundle install --without default development test | |
- name: Run Rubocop | |
run: bin/rubocop -P |