Add env var to run specs only for one database #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: reviewdog | |
on: [push, pull_request] | |
jobs: | |
rubocop: | |
name: runner / rubocop | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Read ruby version | |
run: echo ::set-output name=RUBY_VERSION::$(cat .ruby-version | cut -f 1,2 -d .) | |
id: rv | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: "${{ steps.rv.outputs.RUBY_VERSION }}" | |
- uses: reviewdog/action-rubocop@v1 | |
with: | |
filter_mode: nofilter | |
reporter: github-check | |
rubocop_version: 0.93.1 | |
github_token: ${{ secrets.github_token }} | |
rubocop_extensions: rubocop-performance:1.19.1 rubocop-rails:2.22.2 rubocop-rspec:2.25.0 |