From e0afda2eb2f55f46a8ec688665e5f77e37efcfdd Mon Sep 17 00:00:00 2001 From: Oleh Fedorenko Date: Mon, 15 Jan 2024 13:51:58 +0000 Subject: [PATCH] Test on Ruby 3 --- .github/workflows/ruby_ci.yml | 3 +++ lib/tasks/foreman_templates_tasks.rake | 1 + 2 files changed, 4 insertions(+) diff --git a/.github/workflows/ruby_ci.yml b/.github/workflows/ruby_ci.yml index 06ce3683..acb5d3ab 100644 --- a/.github/workflows/ruby_ci.yml +++ b/.github/workflows/ruby_ci.yml @@ -24,3 +24,6 @@ jobs: uses: theforeman/actions/.github/workflows/foreman_plugin.yml@v0 with: plugin: foreman_templates + # https://github.com/theforeman/foreman/pull/9989 + foreman_repository: ofedoren/foreman + foreman_version: foreman-on-ruby-3-letsgooo diff --git a/lib/tasks/foreman_templates_tasks.rake b/lib/tasks/foreman_templates_tasks.rake index d94e1943..c9321b64 100644 --- a/lib/tasks/foreman_templates_tasks.rake +++ b/lib/tasks/foreman_templates_tasks.rake @@ -79,6 +79,7 @@ namespace :test do test_dir = File.join(File.dirname(__FILE__), '../..', 'test') t.libs << ['test', test_dir] t.pattern = "#{test_dir}/**/*_test.rb" + t.test_files = [Rails.root.join('test/unit/foreman/access_permissions_test.rb')] t.verbose = true t.warning = false end