Skip to content

Merge pull request #31 from blocknotes/feat/switch-to-main-branch #54

Merge pull request #31 from blocknotes/feat/switch-to-main-branch

Merge pull request #31 from blocknotes/feat/switch-to-main-branch #54

Workflow file for this run

---
name: Linters
on:
push:
branches: [develop, main]
pull_request:
branches: [develop, main]
jobs:
linters:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- uses: reviewdog/action-setup@v1
with:
reviewdog_version: latest
- name: Run reviewdog
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
reviewdog -fail-on-error -reporter=github-pr-review -runners=fasterer,rubocop
# NOTE: check with: reviewdog -fail-on-error -reporter=github-pr-review -runners=fasterer -diff="git diff" -tee