Separate specs from rubocop in github actions
This commit is contained in:
parent
0dd62e5d54
commit
a91aea88f8
15
.github/workflows/main.yml
vendored
15
.github/workflows/main.yml
vendored
@ -3,7 +3,7 @@ name: Ruby
|
|||||||
on: [push,pull_request]
|
on: [push,pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -16,3 +16,16 @@ jobs:
|
|||||||
gem install bundler -v 2.2.2
|
gem install bundler -v 2.2.2
|
||||||
bundle install
|
bundle install
|
||||||
bundle exec rake
|
bundle exec rake
|
||||||
|
rubocop:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set up Ruby
|
||||||
|
uses: ruby/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
ruby-version: 3.0.0
|
||||||
|
- name: Run the default task
|
||||||
|
run: |
|
||||||
|
gem install bundler -v 2.2.2
|
||||||
|
bundle install
|
||||||
|
bundle exec rubocop
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
AllCops:
|
||||||
|
TargetRubyVersion: 2.4
|
||||||
|
|
||||||
Style/StringLiterals:
|
Style/StringLiterals:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
EnforcedStyle: double_quotes
|
EnforcedStyle: double_quotes
|
||||||
@ -8,3 +11,8 @@ Style/StringLiteralsInInterpolation:
|
|||||||
|
|
||||||
Layout/LineLength:
|
Layout/LineLength:
|
||||||
Max: 120
|
Max: 120
|
||||||
|
|
||||||
|
Metrics/BlockLength:
|
||||||
|
Enabled: true
|
||||||
|
Exclude:
|
||||||
|
- spec/*_spec.rb
|
||||||
|
2
Rakefile
2
Rakefile
@ -9,4 +9,4 @@ require "rubocop/rake_task"
|
|||||||
|
|
||||||
RuboCop::RakeTask.new
|
RuboCop::RakeTask.new
|
||||||
|
|
||||||
task default: %i[spec rubocop]
|
task default: %i[spec]
|
||||||
|
@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|||||||
spec.description = ""
|
spec.description = ""
|
||||||
spec.homepage = "https://github.com/timkaechele/liquid_dynamic_context"
|
spec.homepage = "https://github.com/timkaechele/liquid_dynamic_context"
|
||||||
spec.license = "MIT"
|
spec.license = "MIT"
|
||||||
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
|
||||||
|
|
||||||
# spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
# spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user