Skip to content

Commit

Permalink
Update Job.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostwriter committed Dec 3, 2023
1 parent 118c7ba commit 8675f08
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/Option/Job.php
Expand Up @@ -17,12 +17,27 @@ public function __construct(
private string $composerJsonPath,
private string $composerLockPath,
private string $dependency,
private int $php = PhpVersion::STABLE,
private int $php = PhpVersion::LATEST,
private bool $experimental = false,
private string $os = 'ubuntu-latest',
) {
}

public static function noop(
string $name
): self {
$currentDirectory = getcwd() ?: '.';
return new self(
name: $name,
command: sprintf('echo "%s"', $name),
extensions: [],
composerCacheFilesDirectory: '~/.cache/composer/files',
composerJsonPath: $currentDirectory,
composerLockPath: $currentDirectory,
dependency: 'locked'
);
}

/**
* @return array{
* name:string,
Expand Down

0 comments on commit 8675f08

Please sign in to comment.