Skip to content

Commit

Permalink
Update ServiceProvider.php
Browse files Browse the repository at this point in the history
Signed-off-by: Nathanael Esayeas <[email protected]>
  • Loading branch information
ghostwriter committed Feb 10, 2025
1 parent 509a3e8 commit c29ed14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Container/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
use Symfony\Component\Console\Style\StyleInterface;
use Symfony\Component\Console\Style\SymfonyStyle;

use const DIRECTORY_SEPARATOR;

use function getcwd;

final readonly class ServiceProvider implements ServiceProviderInterface
Expand Down Expand Up @@ -73,7 +75,7 @@
public function __invoke(ContainerInterface $container): void
{
$_ENV['GITHUB_EVENT_NAME'] ??= 'push';
$_ENV['GITHUB_EVENT_PATH'] ??= 'tests' . \DIRECTORY_SEPARATOR . 'fixture' . \DIRECTORY_SEPARATOR . 'payload.json';
$_ENV['GITHUB_EVENT_PATH'] ??= 'tests' . DIRECTORY_SEPARATOR . 'fixture' . DIRECTORY_SEPARATOR . 'payload.json';
$_ENV['GITHUB_TOKEN'] ??= 'github-token';
$_ENV['GITHUB_WORKSPACE'] ??= getcwd();
$_ENV['RUNNER_DEBUG'] ??= 1;
Expand Down

0 comments on commit c29ed14

Please sign in to comment.