Skip to content

make rubocop only lint the current branch (not a merge with master) #518

make rubocop only lint the current branch (not a merge with master)

make rubocop only lint the current branch (not a merge with master) #518

Workflow file for this run

---

Check failure on line 1 in .github/workflows/rubocop.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/rubocop.yml

Invalid workflow file

(Line: 14, Col: 9): Unexpected value 'ref'
name: Rubocop
on: [ pull_request, push ]
jobs:
build:
runs-on: ubuntu-latest
env:
CI: true
TESTOPTS: "-v"
steps:
- uses: actions/checkout@v2
ref: ${{ github.event.pull_request.head.sha || github.sha }}
with:
submodules: recursive
- name: Set up Ruby 3.0
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
bundler-cache: true
- name: Run RuboCop
run: bundle exec rubocop --parallel