diff --git a/.github/workflows/liquid.yml b/.github/workflows/liquid.yml index 7c4366d..00c51a4 100644 --- a/.github/workflows/liquid.yml +++ b/.github/workflows/liquid.yml @@ -6,7 +6,6 @@ jobs: strategy: matrix: entry: - - { ruby: 2.4, allowed-failure: false } - { ruby: 2.5, allowed-failure: false } - { ruby: 2.6, allowed-failure: false } - { ruby: 2.7, allowed-failure: false } diff --git a/Rakefile b/Rakefile index 780ec35..889fc72 100755 --- a/Rakefile +++ b/Rakefile @@ -9,11 +9,17 @@ task(default: [:test, :rubocop]) desc('run test suite with default parser') Rake::TestTask.new(:base_test) do |t| - t.libs << '.' << 'lib' << 'test' + t.libs << 'lib' << 'test' t.test_files = FileList['test/{integration,unit}/**/*_test.rb'] t.verbose = false end +Rake::TestTask.new(:integration_test) do |t| + t.libs << 'lib' << 'test' + t.test_files = FileList['test/integration/**/*_test.rb'] + t.verbose = false +end + desc('run test suite with warn error mode') task :warn_test do ENV['LIQUID_PARSER_MODE'] = 'warn' @@ -40,12 +46,12 @@ task :test do ENV['LIQUID_C'] = '1' ENV['LIQUID_PARSER_MODE'] = 'lax' - Rake::Task['base_test'].reenable - Rake::Task['base_test'].invoke + Rake::Task['integration_test'].reenable + Rake::Task['integration_test'].invoke ENV['LIQUID_PARSER_MODE'] = 'strict' - Rake::Task['base_test'].reenable - Rake::Task['base_test'].invoke + Rake::Task['integration_test'].reenable + Rake::Task['integration_test'].invoke end end diff --git a/liquid.gemspec b/liquid.gemspec index cf1b75f..9a26162 100644 --- a/liquid.gemspec +++ b/liquid.gemspec @@ -17,7 +17,7 @@ Gem::Specification.new do |s| s.license = "MIT" # s.description = "A secure, non-evaling end user template engine with aesthetic markup." - s.required_ruby_version = ">= 2.4.0" + s.required_ruby_version = ">= 2.5.0" s.required_rubygems_version = ">= 1.3.7" s.test_files = Dir.glob("{test}/**/*")