зеркало из
https://github.com/rs-pro/activeadmin-quill_editor.git
synced 2026-08-28 15:36:17 +03:00
Merge pull request #24 from blocknotes/github_actions_improvements2
Add linter workflow
Этот коммит содержится в:
6
.fasterer.yml
Обычный файл
6
.fasterer.yml
Обычный файл
@@ -0,0 +1,6 @@
|
||||
---
|
||||
exclude_paths:
|
||||
- bin/*
|
||||
- db/schema.rb
|
||||
- spec/dummy/**/*
|
||||
- vendor/**/*
|
||||
35
.github/workflows/linters.yml
поставляемый
Обычный файл
35
.github/workflows/linters.yml
поставляемый
Обычный файл
@@ -0,0 +1,35 @@
|
||||
---
|
||||
name: Linters
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
reviewdog:
|
||||
name: reviewdog
|
||||
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=brakeman,fasterer,reek,rubocop
|
||||
|
||||
# NOTE: check with: reviewdog -fail-on-error -reporter=github-pr-review -runners=fasterer -diff="git diff" -tee
|
||||
1
.github/workflows/specs.yml
поставляемый
1
.github/workflows/specs.yml
поставляемый
@@ -1,3 +1,4 @@
|
||||
---
|
||||
name: Specs
|
||||
|
||||
on:
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
---
|
||||
exclude_paths:
|
||||
- spec/dummy
|
||||
- vendor
|
||||
- bin/*
|
||||
- db/schema.rb
|
||||
- spec/dummy/**/*
|
||||
- vendor/**/*
|
||||
|
||||
detectors:
|
||||
IrresponsibleModule:
|
||||
|
||||
14
.reviewdog.yml
Обычный файл
14
.reviewdog.yml
Обычный файл
@@ -0,0 +1,14 @@
|
||||
---
|
||||
runner:
|
||||
brakeman:
|
||||
cmd: bin/brakeman
|
||||
level: info
|
||||
fasterer:
|
||||
cmd: bin/fasterer
|
||||
level: info
|
||||
reek:
|
||||
cmd: bin/reek
|
||||
level: info
|
||||
rubocop:
|
||||
cmd: bin/rubocop
|
||||
level: info
|
||||
@@ -1,3 +1,4 @@
|
||||
---
|
||||
inherit_from:
|
||||
- https://relaxed.ruby.style/rubocop.yml
|
||||
|
||||
@@ -10,7 +11,9 @@ require:
|
||||
AllCops:
|
||||
Exclude:
|
||||
- bin/*
|
||||
- db/schema.rb
|
||||
- spec/dummy/**/*
|
||||
- vendor/**/*
|
||||
NewCops: enable
|
||||
|
||||
Gemspec/RequiredRubyVersion:
|
||||
|
||||
21
Gemfile
21
Gemfile
@@ -4,16 +4,6 @@ source 'https://rubygems.org'
|
||||
|
||||
gemspec
|
||||
|
||||
# Linters
|
||||
gem 'brakeman'
|
||||
gem 'fasterer'
|
||||
gem 'reek'
|
||||
gem 'rubocop'
|
||||
gem 'rubocop-packaging'
|
||||
gem 'rubocop-performance'
|
||||
gem 'rubocop-rails'
|
||||
gem 'rubocop-rspec'
|
||||
|
||||
group :development, :test do
|
||||
gem 'activestorage', '~> 6.0'
|
||||
gem 'capybara', '~> 3.33'
|
||||
@@ -24,5 +14,16 @@ group :development, :test do
|
||||
gem 'sprockets-rails', '~> 3.2'
|
||||
gem 'sqlite3', '~> 1.4'
|
||||
|
||||
# Linters
|
||||
gem 'brakeman'
|
||||
gem 'fasterer'
|
||||
gem 'reek'
|
||||
gem 'rubocop'
|
||||
gem 'rubocop-packaging'
|
||||
gem 'rubocop-performance'
|
||||
gem 'rubocop-rails'
|
||||
gem 'rubocop-rspec'
|
||||
|
||||
# Tools
|
||||
gem 'pry-rails'
|
||||
end
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# ActiveAdmin Quill Editor [](https://badge.fury.io/rb/activeadmin_quill_editor) [](https://rubygems.org/gems/activeadmin_quill_editor) [](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/specs.yml)
|
||||
# ActiveAdmin Quill Editor
|
||||
[](https://badge.fury.io/rb/activeadmin_quill_editor) [](https://rubygems.org/gems/activeadmin_quill_editor) [](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/linters.yml) [](https://github.com/blocknotes/activeadmin_quill_editor/actions/workflows/specs.yml)
|
||||
|
||||
An Active Admin plugin to use [Quill Rich Text Editor](https://github.com/quilljs/quill) in form fields.
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user