Merge pull request #299 from yahonda/tidy-if-not-to-unless #1105
This file contains hidden or 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: | |
| pull_request: | |
| schedule: | |
| - cron: "0 0 * * *" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| BUNDLER_VERSION: 4.0.6 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Ruby 4.0 | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: "4.0" | |
| - name: Pin Bundler to 4.0.6 (workaround for ruby/rubygems#9536) | |
| run: | | |
| gem install bundler -v 4.0.6 | |
| ruby --version | |
| gem --version | |
| bundle --version | |
| - name: Build and run RuboCop | |
| run: | | |
| BUNDLE_ONLY=rubocop bundle install --jobs 4 --retry 3 | |
| BUNDLE_ONLY=rubocop bundle exec rubocop --parallel |