From 89a4b170ce05e4deda3a87e50b0fdcd3cd6cbd5d Mon Sep 17 00:00:00 2001 From: Nastia Gorokhova-Alekseeva Date: Fri, 14 Jan 2022 14:56:13 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D1=8F?= =?UTF-8?q?=D0=B5=D0=BC=20=D0=BA=D0=BE=D0=BD=D1=84=D0=B8=D0=B3=20=D1=80?= =?UTF-8?q?=D1=83=D0=B1=D0=BE=D0=BA=D0=BE=D0=BF=D0=B0=20=D0=B8=20=D0=B5?= =?UTF-8?q?=D0=B3=D0=BE=20=D0=B7=D0=B0=D0=BF=D1=83=D1=81=D0=BA=20=D0=B2=20?= =?UTF-8?q?CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pronto.yaml | 18 ++++++++++++++++++ .rubocop.yml | 11 +++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/pronto.yaml create mode 100644 .rubocop.yml diff --git a/.github/workflows/pronto.yaml b/.github/workflows/pronto.yaml new file mode 100644 index 0000000..0109363 --- /dev/null +++ b/.github/workflows/pronto.yaml @@ -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 }} diff --git a/.rubocop.yml b/.rubocop.yml new file mode 100644 index 0000000..9bbdd19 --- /dev/null +++ b/.rubocop.yml @@ -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