Skip to content

Commit

Permalink
Run tests separately
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Oct 8, 2024
1 parent 225baff commit fdba797
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@ jobs:
make
sudo make install
- run: bundle exec rake test
- run: TEST_TRILOGY=1 bundle exec rake test
- run: TEST_TRILOGY=1 bundle exec rake test:mariadb
- run: TEST_TRILOGY=1 bundle exec rake test:mysql
8 changes: 5 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ namespace :test do
end
end

Rake::TestTask.new(:test) do |t|
t.libs << "test"
t.test_files = FileList["test/**/*_test.rb"]
task :test do
[:postgresql, :sqlite, :mariadb, :mysql].each do |adapter|
puts "Using #{adapter}"
Rake::Task["test:#{adapter}"].invoke
end
end

task default: :test

0 comments on commit fdba797

Please sign in to comment.