From 8675f089e0e4257dbcfa6f53b66c17f92b070b2b Mon Sep 17 00:00:00 2001 From: Nathanael Esayeas Date: Sun, 3 Dec 2023 17:03:11 -0600 Subject: [PATCH] Update Job.php --- src/Option/Job.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/Option/Job.php b/src/Option/Job.php index c8ad4e0a..504cf6c5 100644 --- a/src/Option/Job.php +++ b/src/Option/Job.php @@ -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,