Skip to content

Commit

Permalink
Merge pull request #107 from woocommerce/24-01/skip-onboarding-on-ci
Browse files Browse the repository at this point in the history
Do not show onboarding on CI
  • Loading branch information
Luc45 authored Jan 11, 2024
2 parents ce80d95 + 60aa6bb commit 0efb826
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ public static function needs_onboarding(): bool {
return false;
}

// There's no point in showing the onboarding wizard in a CI context.
if ( getenv( 'CI' ) ) {
return false;
}

// Consistent behavior if we are running the onboarding command directly.
if ( App::make( Input::class )->getFirstArgument() === OnboardingCommand::getDefaultName() ) {
return true;
Expand Down

0 comments on commit 0efb826

Please sign in to comment.