module Publisher::Providers

Namespace for providers executing tests

Public Class Methods

provider() click to toggle source

Detect CI provider

@return [Publisher::Providers::Base]

# File lib/allure_report_publisher/lib/providers/_provider.rb, line 8
def self.provider
  return Github if ENV["GITHUB_WORKFLOW"]
  return Gitlab if ENV["GITLAB_CI"]
end