Skip to content

Provide default value for WORKFLOW_URL env var #78

Provide default value for WORKFLOW_URL env var

Provide default value for WORKFLOW_URL env var #78

GitHub Actions / Test Report failed Sep 6, 2024 in 0s

67 tests run, 62 passed, 0 skipped, 5 failed.

Annotations

Check failure on line 17 in spec/asana_add_comment_spec.rb

See this annotation in the file changed.

@github-actions github-actions / Test Report

./spec/asana_add_comment_spec.rb.Fastlane::Actions::AsanaAddCommentAction#run does not call task id extraction if task id provided

To call another action from an action use `other_action.workflow_url` instead
Raw output
Failure/Error: if comment && workflow_url.to_s.empty?

FastlaneCore::Interface::FastlaneError:
  To call another action from an action use `other_action.workflow_url` instead
./vendor/bundle/ruby/3.3.0/gems/fastlane-2.222.0/fastlane_core/lib/fastlane_core/ui/interface.rb:141:in `user_error!'
./vendor/bundle/ruby/3.3.0/gems/fastlane-2.222.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'
./vendor/bundle/ruby/3.3.0/gems/fastlane-2.222.0/fastlane/lib/fastlane/action.rb:134:in `method_missing'
./lib/fastlane/plugin/ddg_apple_automation/actions/asana_add_comment_action.rb:94:in `validate_params'
./lib/fastlane/plugin/ddg_apple_automation/actions/asana_add_comment_action.rb:20:in `run'
./spec/asana_add_comment_spec.rb:106:in `test_action'
./spec/asana_add_comment_spec.rb:17:in `block (3 levels) in <top (required)>'

Check failure on line 24 in spec/asana_add_comment_spec.rb

See this annotation in the file changed.

@github-actions github-actions / Test Report

./spec/asana_add_comment_spec.rb.Fastlane::Actions::AsanaAddCommentAction#run extracts task id if task id not provided

To call another action from an action use `other_action.workflow_url` instead
Raw output
Failure/Error: if comment && workflow_url.to_s.empty?

FastlaneCore::Interface::FastlaneError:
  To call another action from an action use `other_action.workflow_url` instead
./vendor/bundle/ruby/3.3.0/gems/fastlane-2.222.0/fastlane_core/lib/fastlane_core/ui/interface.rb:141:in `user_error!'
./vendor/bundle/ruby/3.3.0/gems/fastlane-2.222.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'
./vendor/bundle/ruby/3.3.0/gems/fastlane-2.222.0/fastlane/lib/fastlane/action.rb:134:in `method_missing'
./lib/fastlane/plugin/ddg_apple_automation/actions/asana_add_comment_action.rb:94:in `validate_params'
./lib/fastlane/plugin/ddg_apple_automation/actions/asana_add_comment_action.rb:20:in `run'
./spec/asana_add_comment_spec.rb:106:in `test_action'
./spec/asana_add_comment_spec.rb:24:in `block (3 levels) in <top (required)>'

Check failure on line 41 in spec/asana_add_comment_spec.rb

See this annotation in the file changed.

@github-actions github-actions / Test Report

./spec/asana_add_comment_spec.rb.Fastlane::Actions::AsanaAddCommentAction#run shows error if comment is provided but workflow_url is not

#<FastlaneCore::UI (class)> received :user_error! with unexpected arguments
  expected: ("If comment is provided, workflow_url cannot be empty")
       got: ("To call another action from an action use `other_action.workflow_url` instead")
Raw output
Failure/Error: if comment && workflow_url.to_s.empty?

  #<FastlaneCore::UI (class)> received :user_error! with unexpected arguments
    expected: ("If comment is provided, workflow_url cannot be empty")
         got: ("To call another action from an action use `other_action.workflow_url` instead")
./vendor/bundle/ruby/3.3.0/gems/fastlane-2.222.0/fastlane/lib/fastlane/action.rb:134:in `method_missing'
./lib/fastlane/plugin/ddg_apple_automation/actions/asana_add_comment_action.rb:94:in `validate_params'
./lib/fastlane/plugin/ddg_apple_automation/actions/asana_add_comment_action.rb:20:in `run'
./spec/asana_add_comment_spec.rb:106:in `test_action'
./spec/asana_add_comment_spec.rb:45:in `block (4 levels) in <top (required)>'
./vendor/bundle/ruby/3.3.0/gems/climate_control-1.2.0/lib/climate_control.rb:24:in `block in modify'
./vendor/bundle/ruby/3.3.0/gems/climate_control-1.2.0/lib/climate_control.rb:15:in `synchronize'
./vendor/bundle/ruby/3.3.0/gems/climate_control-1.2.0/lib/climate_control.rb:15:in `modify'
./spec/asana_add_comment_spec.rb:41:in `block (3 levels) in <top (required)>'

Check failure on line 87 in spec/asana_add_comment_spec.rb

See this annotation in the file changed.

@github-actions github-actions / Test Report

./spec/asana_add_comment_spec.rb.Fastlane::Actions::AsanaAddCommentAction#run correctly builds text payload

To call another action from an action use `other_action.workflow_url` instead
Raw output
Failure/Error: if comment && workflow_url.to_s.empty?

FastlaneCore::Interface::FastlaneError:
  To call another action from an action use `other_action.workflow_url` instead
./vendor/bundle/ruby/3.3.0/gems/fastlane-2.222.0/fastlane_core/lib/fastlane_core/ui/interface.rb:141:in `user_error!'
./vendor/bundle/ruby/3.3.0/gems/fastlane-2.222.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'
./vendor/bundle/ruby/3.3.0/gems/fastlane-2.222.0/fastlane/lib/fastlane/action.rb:134:in `method_missing'
./lib/fastlane/plugin/ddg_apple_automation/actions/asana_add_comment_action.rb:94:in `validate_params'
./lib/fastlane/plugin/ddg_apple_automation/actions/asana_add_comment_action.rb:20:in `run'
./spec/asana_add_comment_spec.rb:106:in `test_action'
./spec/asana_add_comment_spec.rb:90:in `block (4 levels) in <top (required)>'
./vendor/bundle/ruby/3.3.0/gems/climate_control-1.2.0/lib/climate_control.rb:24:in `block in modify'
./vendor/bundle/ruby/3.3.0/gems/climate_control-1.2.0/lib/climate_control.rb:15:in `synchronize'
./vendor/bundle/ruby/3.3.0/gems/climate_control-1.2.0/lib/climate_control.rb:15:in `modify'
./spec/asana_add_comment_spec.rb:87:in `block (3 levels) in <top (required)>'

Check failure on line 101 in spec/asana_add_comment_spec.rb

See this annotation in the file changed.

@github-actions github-actions / Test Report

./spec/asana_add_comment_spec.rb.Fastlane::Actions::AsanaAddCommentAction#run fails when client raises error

#<FastlaneCore::UI (class)> received :user_error! with unexpected arguments
  expected: ("Failed to post comment: API error")
       got: ("To call another action from an action use `other_action.workflow_url` instead")
Raw output
Failure/Error: if comment && workflow_url.to_s.empty?

  #<FastlaneCore::UI (class)> received :user_error! with unexpected arguments
    expected: ("Failed to post comment: API error")
         got: ("To call another action from an action use `other_action.workflow_url` instead")
./vendor/bundle/ruby/3.3.0/gems/fastlane-2.222.0/fastlane/lib/fastlane/action.rb:134:in `method_missing'
./lib/fastlane/plugin/ddg_apple_automation/actions/asana_add_comment_action.rb:94:in `validate_params'
./lib/fastlane/plugin/ddg_apple_automation/actions/asana_add_comment_action.rb:20:in `run'
./spec/asana_add_comment_spec.rb:106:in `test_action'
./spec/asana_add_comment_spec.rb:101:in `block (3 levels) in <top (required)>'