Merge pull request #58 from dsandstrom/dependabot/npm_and_yarn/babel/… #463
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] | |
| jobs: | |
| rubocop: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v7 | |
| # If running on a self-hosted runner, check it meets the requirements | |
| # listed at https://github.com/ruby/setup-ruby#using-self-hosted-runners | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 3.3.11 | |
| - name: Setup Bundler cache | |
| uses: actions/cache@v6 | |
| with: | |
| path: vendor/bundle | |
| key: bundle-use-ruby-${{ matrix.os }}-${{ matrix.ruby }}-${{ hashFiles('**/Gemfile.lock') }} | |
| restore-keys: | | |
| bundle-use-ruby-${{ matrix.os }}-${{ matrix.ruby }}- | |
| - name: Install gems with Bundler | |
| run: | | |
| bundle config deployment true | |
| bundle config path vendor/bundle | |
| bundle install --jobs 4 | |
| - name: Run RuboCop | |
| run: bundle exec rubocop --format github --format clang |