mirror of
https://github.com/kemko/paperclip.git
synced 2026-01-01 16:05:40 +03:00
Merge pull request #52 from insales/less_gems_in_ci
Do not install lint tools in all appraisals and remove unnecessary steps
This commit is contained in:
16
.github/workflows/test.yaml
vendored
16
.github/workflows/test.yaml
vendored
@@ -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
16
Gemfile
@@ -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
|
||||
|
||||
@@ -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: "../"
|
||||
|
||||
@@ -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: "../"
|
||||
|
||||
@@ -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: "../"
|
||||
|
||||
@@ -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: "../"
|
||||
|
||||
Reference in New Issue
Block a user