Merge pull request #125 from shubhamshinde360/PA-6327 #898
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: Checks | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
checks: | |
name: Rubocop check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout current PR | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.0' | |
- name: Install bundler and gems | |
run: | | |
gem install bundler | |
bundle config set without packaging documentation | |
bundle install --jobs 4 --retry 3 | |
- name: Run Rubocop check | |
run: bundle exec rake rubocop | |