Merge pull request #945 from alexwlchan/naming-things #607
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: "rubocop" | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '**/*.rb' | |
- '.github/workflows/rubocop.yml' | |
- 'Gemfile' | |
- 'Gemfile.lock' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- '**/*.rb' | |
- '.github/workflows/rubocop.yml' | |
- 'Gemfile' | |
- 'Gemfile.lock' | |
jobs: | |
build: | |
name: Lint the Ruby code | |
runs-on: ubuntu-latest | |
env: | |
BUNDLE_WITH: lint | |
steps: | |
- name: "Check out the repo" | |
uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: "3.3" | |
bundler-cache: true | |
cache-version: 0 | |
- name: Run rubocop | |
run: bundle exec rubocop |