name: Rubocop on: push: branches: [ master, develop ] pull_request: branches: [ master, develop ] jobs: rubocop: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: '3.0' bundler-cache: true - name: Run rubocop run: bundle exec rubocop