GithubActionReporter
in package
Utility class for Github actions.
Tags
Table of Contents
Constants
- ESCAPED_DATA = ['%' => '%25', "\r" => '%0D', "\n" => '%0A']
- ESCAPED_PROPERTIES = ['%' => '%25', "\r" => '%0D', "\n" => '%0A', ':' => '%3A', ',' => '%2C']
Properties
Methods
- __construct() : mixed
- debug() : void
- Output a debug log using the Github annotations format.
- error() : void
- Output an error using the Github annotations format.
- isGithubActionEnvironment() : bool
- warning() : void
- Output a warning using the Github annotations format.
- log() : void
Constants
ESCAPED_DATA
private
mixed
ESCAPED_DATA
= ['%' => '%25', "\r" => '%0D', "\n" => '%0A']
Tags
ESCAPED_PROPERTIES
private
mixed
ESCAPED_PROPERTIES
= ['%' => '%25', "\r" => '%0D', "\n" => '%0A', ':' => '%3A', ',' => '%2C']
Tags
Properties
$output
private
OutputInterface
$output
Methods
__construct()
public
__construct(OutputInterface $output) : mixed
Parameters
- $output : OutputInterface
debug()
Output a debug log using the Github annotations format.
public
debug(string $message[, string|null $file = null ][, int|null $line = null ][, int|null $col = null ]) : void
Parameters
- $message : string
- $file : string|null = null
- $line : int|null = null
- $col : int|null = null
Tags
error()
Output an error using the Github annotations format.
public
error(string $message[, string|null $file = null ][, int|null $line = null ][, int|null $col = null ]) : void
Parameters
- $message : string
- $file : string|null = null
- $line : int|null = null
- $col : int|null = null
Tags
isGithubActionEnvironment()
public
static isGithubActionEnvironment() : bool
Return values
boolwarning()
Output a warning using the Github annotations format.
public
warning(string $message[, string|null $file = null ][, int|null $line = null ][, int|null $col = null ]) : void
Parameters
- $message : string
- $file : string|null = null
- $line : int|null = null
- $col : int|null = null
Tags
log()
private
log(string $type, string $message[, string|null $file = null ][, int|null $line = null ][, int|null $col = null ]) : void
Parameters
- $type : string
- $message : string
- $file : string|null = null
- $line : int|null = null
- $col : int|null = null