mirror of
https://github.com/kemko/paperclip.git
synced 2026-01-01 16:05:40 +03:00
Добавляем конфиг рубокопа и его запуск в CI
This commit is contained in:
18
.github/workflows/pronto.yaml
vendored
Normal file
18
.github/workflows/pronto.yaml
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
name: Lint
|
||||
on: pull_request
|
||||
jobs:
|
||||
lint:
|
||||
name: Pronto lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: git fetch --no-tags --prune --unshallow origin +refs/heads/*:refs/remotes/origin/*
|
||||
- name: Install ruby
|
||||
uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: '2.6'
|
||||
bundler-cache: true
|
||||
- run: bundle exec pronto run -f github_status github_pr_review -c origin/master
|
||||
env:
|
||||
PRONTO_GITHUB_ACCESS_TOKEN: ${{ github.token }}
|
||||
PRONTO_PULL_REQUEST_ID: ${{ github.event.pull_request.number }}
|
||||
11
.rubocop.yml
Normal file
11
.rubocop.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
require:
|
||||
- rubocop-rails
|
||||
- rubocop-rspec
|
||||
- rubocop-performance
|
||||
inherit_from:
|
||||
- https://raw.githubusercontent.com/insales/code_style/master/ruby/rubocop.yml
|
||||
- https://raw.githubusercontent.com/insales/code_style/master/ruby/rubocop_rails.yml
|
||||
|
||||
AllCops:
|
||||
TargetRubyVersion: 2.6
|
||||
TargetRailsVersion: 5.2
|
||||
Reference in New Issue
Block a user