only use gem source for linter tests - to fix https://www.redmine.org/issues/35028
This commit is contained in:
parent
b354f053ef
commit
fff583660c
12
.github/workflows/linters.yml
vendored
12
.github/workflows/linters.yml
vendored
@ -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
|
||||
|
2
Gemfile
2
Gemfile
@ -1,4 +1,2 @@
|
||||
source 'https://rubygems.org'
|
||||
|
||||
# Specify your gem's dependencies in additionals.gemspec
|
||||
gemspec
|
||||
|
10
test/support/gemfile.rb
Normal file
10
test/support/gemfile.rb
Normal 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
|
Loading…
Reference in New Issue
Block a user