Skip to content

Commit

Permalink
Merge pull request #10 from rails-on-services/fix-rubocop-usage
Browse files Browse the repository at this point in the history
- Fixes CI runs:
  - One of the rails versions [had a bug](rails/rails#38137) and causes the CI to fail. I've moved it to the allowed failures.
  - I think we should deprecate these versions as they are EOL. => New ticket to be created
- Fixes rubocop installation - I had not realized when I merged rubocop installation that I was breaking all CI (I'm sorry for the rushed decision). This fixes the dependencies and all CI should be passing.
- Adds rubocop to github actions. All the rubocop failures will be fixed with #8
  • Loading branch information
rpbaltazar authored Feb 17, 2020
2 parents 4a4c62c + 812d129 commit 92960de
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/.rubocop-linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Rubocop Lint

on: [push]

jobs:
build:

runs-on: ubuntu-latest

container:
image: ruby:2.6.5

steps:
- uses: actions/checkout@v1
- name: Rubocop Linter
uses: andrewmcodes/[email protected]
with:
additional_gems: 'perx-rubocop:0.0.3'
fail_level: 'warning'
version: '0.77.0'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ jobs:
- gemfile: gemfiles/rails_master.gemfile
- rvm: jruby-9.1.17.0
gemfile: gemfiles/rails_5_0.gemfile
# Rails 5.2.4.1 is currently broken. Code has been fixed but no release
# for it yet - https://github.com/rails/rails/issues/38137
- rvm: 2.2.9
gemfile: gemfiles/rails_5_2.gemfile
exclude:
- rvm: 2.1.9
gemfile: gemfiles/rails_5_0.gemfile
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ source 'http://rubygems.org'
gemspec

gem 'rails', '>= 3.1.2'
gem 'perx-rubocop', '~> 0.0.3'

group :local do
gem 'guard-rspec', '~> 4.2'
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,13 @@ end

* If you're looking to help, check out the TODO file for some upcoming changes I'd like to implement in Apartment.

### Running bundle install

mysql2 gem in some cases fails to install.
If you face problems running bundle install in OSX, try installing the gem running:

`gem install mysql2 -v '0.5.3' -- --with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/include`

## License

Apartment is released under the [MIT License](http://www.opensource.org/licenses/MIT).
1 change: 0 additions & 1 deletion apartment.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ Gem::Specification.new do |s|
s.add_development_dependency 'appraisal'
s.add_development_dependency 'bundler', '>= 1.3', '< 2.0'
s.add_development_dependency 'capybara', '~> 2.0'
s.add_development_dependency 'perx-rubocop', '~> 0.0.3'
s.add_development_dependency 'rake', '~> 0.9'
s.add_development_dependency 'rspec', '~> 3.4'
s.add_development_dependency 'rspec-rails', '~> 3.4'
Expand Down

0 comments on commit 92960de

Please sign in to comment.