only use gem source for linter tests - to fix https://www.redmine.org/issues/35028

This commit is contained in:
Alexander Meindl 2021-04-06 07:19:07 +02:00
parent b354f053ef
commit fff583660c
3 changed files with 11 additions and 13 deletions

View File

@ -18,19 +18,9 @@ jobs:
ruby-version: 2.6
bundler-cache: true
- name: Set Gemfile
run: |
echo "">> Gemfile
echo "group :test do">> Gemfile
echo " gem 'pandoc-ruby', require: false" >> Gemfile
echo " gem 'rubocop', require: false" >> Gemfile
echo " gem 'rubocop-performance', require: false" >> Gemfile
echo " gem 'rubocop-rails', require: false" >> Gemfile
echo " gem 'slim_lint', require: false" >> Gemfile
echo "end">> Gemfile
- name: Setup gems
run: |
cp test/support/gemfile.rb Gemfile
bundle install --jobs 4 --retry 3
- name: Run RuboCop

View File

@ -1,4 +1,2 @@
source 'https://rubygems.org'
# Specify your gem's dependencies in additionals.gemspec
gemspec

10
test/support/gemfile.rb Normal file
View File

@ -0,0 +1,10 @@
source 'https://rubygems.org'
group :test do
gem 'brakeman', require: false
gem 'pandoc-ruby', require: false
gem 'rubocop', require: false
gem 'rubocop-performance', require: false
gem 'rubocop-rails', require: false
gem 'slim_lint', require: false
end