Skip to content

Commit

Permalink
chore: adjusts local server contribution
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Feb 15, 2025
1 parent e5ecf2b commit 1c33526
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/art export-ignore
/docs export-ignore
/playground export-ignore
/playground export-ignore
/tests export-ignore
/scripts export-ignore
/.github export-ignore
Expand Down
9 changes: 9 additions & 0 deletions playground/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env php
<?php

declare(strict_types=1);

// check if the "vendor" folder exists, if not, run "composer install"
if (! file_exists(__DIR__.'/vendor/autoload.php')) {
shell_exec('composer install');
}
2 changes: 1 addition & 1 deletion playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default defineConfig({
/* Run your local dev server before starting the tests */
webServer: {
cwd: `${__dirname}/playground`,
command: `php artisan serve --port=${port}`,
command: `php install && php artisan serve --port=${port}`,
url: baseURL,
reuseExistingServer: !process.env.CI,
},
Expand Down

0 comments on commit 1c33526

Please sign in to comment.