Do not install lint tools in all appraisals and remove unnecessary steps

This commit is contained in:
Vasily Fedoseyev
2022-02-22 16:22:53 +03:00
parent b7370bdbff
commit 2d907efb56
6 changed files with 53 additions and 47 deletions

View File

@@ -27,14 +27,15 @@ jobs:
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails_${{ matrix.rails-version }}.gemfile
BUNDLE_WITHOUT: lint
services:
postgres:
image: postgres:12-alpine
env:
POSTGRES_DB: paperclip_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ""
POSTGRES_DB: postgres
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- 5432:5432
@@ -46,16 +47,7 @@ jobs:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Create databases
env:
RAILS_ENV: test
PGHOST: localhost
PGUSER: postgres
PGPORT: 5432
run: sudo -u postgres createdb -h localhost -p 5432 -U postgres paperclip_test
- name: Run tests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
bundle exec appraisal rails_${{ matrix.rails-version }} rake test
echo Running with $BUNDLE_GEMFILE
bundle exec rake test

16
Gemfile
View File

@@ -24,11 +24,13 @@ gem 'thoughtbot-shoulda', '>= 2.9.0'
gem 'pry'
gem 'pry-byebug'
gem 'rubocop', '0.81.0'
gem 'rubocop-rails', '2.5.2'
gem 'rubocop-rspec', '1.38.1'
gem 'rubocop-performance', '1.5.2'
group :lint do
gem 'rubocop', '0.81.0'
gem 'rubocop-rails', '2.5.2'
gem 'rubocop-rspec', '1.38.1'
gem 'rubocop-performance', '1.5.2'
gem 'pronto', '>= 0.11', require: false
gem 'pronto-brakeman', require: false
gem 'pronto-rubocop', require: false
gem 'pronto', '>= 0.11', require: false
gem 'pronto-brakeman', require: false
gem 'pronto-rubocop', require: false
end

View File

@@ -15,12 +15,15 @@ gem "mocha"
gem "thoughtbot-shoulda", ">= 2.9.0"
gem "pry"
gem "pry-byebug"
gem "rubocop", "0.81.0"
gem "rubocop-rails", "2.5.2"
gem "rubocop-rspec", "1.38.1"
gem "rubocop-performance", "1.5.2"
gem "pronto", ">= 0.11", require: false
gem "pronto-brakeman", require: false
gem "pronto-rubocop", require: false
group :lint do
gem "rubocop", "0.81.0"
gem "rubocop-rails", "2.5.2"
gem "rubocop-rspec", "1.38.1"
gem "rubocop-performance", "1.5.2"
gem "pronto", ">= 0.11", require: false
gem "pronto-brakeman", require: false
gem "pronto-rubocop", require: false
end
gemspec path: "../"

View File

@@ -15,12 +15,15 @@ gem "mocha"
gem "thoughtbot-shoulda", ">= 2.9.0"
gem "pry"
gem "pry-byebug"
gem "rubocop", "0.81.0"
gem "rubocop-rails", "2.5.2"
gem "rubocop-rspec", "1.38.1"
gem "rubocop-performance", "1.5.2"
gem "pronto", ">= 0.11", require: false
gem "pronto-brakeman", require: false
gem "pronto-rubocop", require: false
group :lint do
gem "rubocop", "0.81.0"
gem "rubocop-rails", "2.5.2"
gem "rubocop-rspec", "1.38.1"
gem "rubocop-performance", "1.5.2"
gem "pronto", ">= 0.11", require: false
gem "pronto-brakeman", require: false
gem "pronto-rubocop", require: false
end
gemspec path: "../"

View File

@@ -15,12 +15,15 @@ gem "mocha"
gem "thoughtbot-shoulda", ">= 2.9.0"
gem "pry"
gem "pry-byebug"
gem "rubocop", "0.81.0"
gem "rubocop-rails", "2.5.2"
gem "rubocop-rspec", "1.38.1"
gem "rubocop-performance", "1.5.2"
gem "pronto", ">= 0.11", require: false
gem "pronto-brakeman", require: false
gem "pronto-rubocop", require: false
group :lint do
gem "rubocop", "0.81.0"
gem "rubocop-rails", "2.5.2"
gem "rubocop-rspec", "1.38.1"
gem "rubocop-performance", "1.5.2"
gem "pronto", ">= 0.11", require: false
gem "pronto-brakeman", require: false
gem "pronto-rubocop", require: false
end
gemspec path: "../"

View File

@@ -15,12 +15,15 @@ gem "mocha"
gem "thoughtbot-shoulda", ">= 2.9.0"
gem "pry"
gem "pry-byebug"
gem "rubocop", "0.81.0"
gem "rubocop-rails", "2.5.2"
gem "rubocop-rspec", "1.38.1"
gem "rubocop-performance", "1.5.2"
gem "pronto", ">= 0.11", require: false
gem "pronto-brakeman", require: false
gem "pronto-rubocop", require: false
group :lint do
gem "rubocop", "0.81.0"
gem "rubocop-rails", "2.5.2"
gem "rubocop-rspec", "1.38.1"
gem "rubocop-performance", "1.5.2"
gem "pronto", ">= 0.11", require: false
gem "pronto-brakeman", require: false
gem "pronto-rubocop", require: false
end
gemspec path: "../"