Skip to content

Commit

Permalink
Move task to lib/tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
stejskalleos committed Mar 14, 2024
1 parent 95ae9f5 commit 409cb77
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
rubocop:
name: Rubocop
uses: theforeman/actions/.github/workflows/rubocop.yml@v0
with:
command: bundle exec rubocop --parallel --format github

test_ruby:
name: Ruby
Expand Down
15 changes: 15 additions & 0 deletions lib/tasks/foreman_azure_rm_tasks.rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# frozen_string_literal: true

# Tests
namespace :test do
desc 'Test foreman_azure_rm'
Rake::TestTask.new(:foreman_azure_rm) do |t|
test_dir = File.join(File.dirname(__FILE__), '..', 'test')
t.libs << ['test', test_dir]
t.pattern = "#{test_dir}/**/*_test.rb"
t.verbose = true
t.warning = false
end
end

Rake::Task[:test].enhance ['test:foreman_azure_rm']

0 comments on commit 409cb77

Please sign in to comment.