feat: adicionado filtro na pagina de relatório de pontos #103
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: Linters | |
env: | |
RUBY_VERSION: 2.7.0 | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
rubocop: | |
name: Run Rubocop | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[ci skip]')" | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v1 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ env.RUBY_VERSION }} | |
- name: ReviewDog Report | |
uses: reviewdog/action-rubocop@v1 | |
with: | |
rubocop_version: gemfile | |
rubocop_extensions: rubocop-performance:gemfile rubocop-rails:gemfile rubocop-rspec:gemfile | |
github_token: ${{ secrets.github_token }} | |
reporter: github-pr-review | |
rubocop_flags: "-c .rubocop.yml" | |
brakeman: | |
name: Run Brakeman | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[ci skip]')" | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v1 | |
- name: Run Brakeman | |
uses: reviewdog/action-brakeman@v1 | |
with: | |
github_token: ${{ secrets.github_token }} | |
reporter: github-pr-review | |
reek: | |
name: Run Reek | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[ci skip]')" | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v1 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ env.RUBY_VERSION }} | |
- name: Run Reek | |
uses: reviewdog/action-reek@v1 | |
with: | |
reek_version: gemfile | |
reporter: github-pr-review |