name: Linting on: pull_request: types: [opened, synchronize, reopened] push: branches: - main jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: ruby/setup-ruby@v1 with: ruby-version: 2.7 bundler-cache: true - run: bundle install - name: Rubocop run: bundle exec rake rubocop