name: Rubocop on: push: branches: - main pull_request: jobs: rubocop: runs-on: ubuntu-latest name: Rubocop steps: - name: Checkout code uses: actions/checkout@v3 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: "2.7" bundler-cache: true - name: Install dependencies run: bundle install - name: Analyze code run: bundle exec rubocop