Skip to content

Commit

Permalink
Add RuboCop check GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ezr-ondrej committed Dec 23, 2020
1 parent 42225b3 commit 833db46
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: CI
on:
pull_request:
push:
branches:
- master
jobs:
rubocop:
runs-on: ubuntu-latest
env:
BUNDLE_SMART_PROXY: '0'
steps:
- uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.5
bundler-cache: true
- name: Run rubocop
run: bundle exec rubocop --format github
11 changes: 8 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@ source 'https://rubygems.org'
gemspec

group :development do
gem 'smart_proxy', git: 'https://github.com/theforeman/smart-proxy',
branch: 'develop'
#gem 'smart_proxy', path: '../smart-proxy'
gem 'pry'

if (smart_proxy_path = ENV.fetch('SMART_PROXY_PATH', nil))
gem 'smart_proxy', path: smart_proxy_path
elsif ENV.fetch('BUNDLE_SMART_PROXY', '1') != '0'
gem 'smart_proxy', git: 'https://github.com/theforeman/smart-proxy',
branch: 'develop'
end
end

group :test do
gem 'minitest'
gem 'mocha'
gem 'theforeman-rubocop', '~> 0.1.0.pre'
end
2 changes: 1 addition & 1 deletion smart_proxy_ansible.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ Gem::Specification.new do |gem|
gem.require_paths = ['lib']
gem.license = 'GPL-3.0'

gem.required_ruby_version = '>= 2.5'
gem.add_development_dependency 'rake', '~> 13.0'
gem.add_development_dependency('minitest', '~> 0')
gem.add_development_dependency('mocha', '~> 1')
gem.add_development_dependency('webmock', '~> 3')
gem.add_development_dependency('rack-test', '~> 0')
gem.add_development_dependency('logger')
gem.add_development_dependency('smart_proxy')
gem.add_runtime_dependency('smart_proxy_dynflow', '~> 0.1')
end

0 comments on commit 833db46

Please sign in to comment.