forked from coollabsio/coolify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
13fbdc2
commit 2717274
Showing
13 changed files
with
376 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
_____ _ _ __ | ||
/ ____| | (_)/ _| | ||
| | ___ ___ | |_| |_ _ _ | ||
| | / _ \ / _ \| | | _| | | | | ||
| |___| (_) | (_) | | | | | |_| | | ||
\_____\___/ \___/|_|_|_| \__, | | ||
__/ | | ||
|___/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
tasks: | ||
- name: Setup Sail environment and Composer dependencies | ||
# Fix because of https://github.com/gitpod-io/gitpod/issues/16614 | ||
before: sudo curl -o /usr/local/bin/docker-compose -fsSL https://github.com/docker/compose/releases/download/v2.16.0/docker-compose-linux-$(uname -m) | ||
init: | | ||
cp .env.example .env && | ||
sed -i "s#APP_URL=http://localhost#APP_URL=$(gp url 80)#g" .env | ||
sed -i "s#GITPOD_VITE_URL=#GITPOD_VITE_URL=$(gp url 5173)#g" .env | ||
composer install --ignore-platform-reqs | ||
./vendor/bin/sail up -d | ||
./vendor/bin/sail php artisan key:generate | ||
./vendor/bin/sail php artisan storage:link | ||
cat .coolify-logo | ||
gp sync-done sail-is-ready | ||
- name: Install Node dependencies and run Vite | ||
command: | | ||
echo "Waiting for Sail environment to boot up." | ||
gp sync-await sail-is-ready | ||
./vendor/bin/sail npm install | ||
./vendor/bin/sail npm run dev | ||
ports: | ||
- port: 3306 | ||
onOpen: ignore | ||
name: MySQL Database Port | ||
- port: 5173 | ||
onOpen: ignore | ||
visibility: public | ||
name: Node Server for Vite | ||
|
||
# Configure vscode | ||
vscode: | ||
extensions: | ||
- bmewburn.vscode-intelephense-client | ||
- eamodio.gitlens | ||
- ikappas.composer | ||
- ms-azuretools.vscode-docker | ||
- ecmel.vscode-html-css | ||
- MehediDracula.php-namespace-resolver | ||
- wmaurer.change-case | ||
- Equinusocio.vsc-community-material-theme | ||
- EditorConfig.EditorConfig | ||
- streetsidesoftware.code-spell-checker | ||
- rangav.vscode-thunder-client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit backupGlobals="false" | ||
beStrictAboutTestsThatDoNotTestAnything="false" | ||
colors="true" | ||
processIsolation="false" | ||
stopOnError="false" | ||
stopOnFailure="false" | ||
cacheDirectory=".phpunit.cache" | ||
backupStaticProperties="false"> | ||
<testsuites> | ||
<testsuite name="Browser Test Suite"> | ||
<directory suffix="Test.php">./tests/Browser</directory> | ||
</testsuite> | ||
</testsuites> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace Tests\Browser; | ||
|
||
use Illuminate\Foundation\Testing\DatabaseMigrations; | ||
use Laravel\Dusk\Browser; | ||
use Tests\DuskTestCase; | ||
|
||
class ExampleTest extends DuskTestCase | ||
{ | ||
/** | ||
* A basic browser test example. | ||
*/ | ||
public function testBasicExample(): void | ||
{ | ||
$this->browse(function (Browser $browser) { | ||
$browser->visit('/') | ||
->assertSee('Laravel'); | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
namespace Tests\Browser\Pages; | ||
|
||
use Laravel\Dusk\Browser; | ||
|
||
class HomePage extends Page | ||
{ | ||
/** | ||
* Get the URL for the page. | ||
*/ | ||
public function url(): string | ||
{ | ||
return '/'; | ||
} | ||
|
||
/** | ||
* Assert that the browser is on the page. | ||
*/ | ||
public function assert(Browser $browser): void | ||
{ | ||
// | ||
} | ||
|
||
/** | ||
* Get the element shortcuts for the page. | ||
* | ||
* @return array<string, string> | ||
*/ | ||
public function elements(): array | ||
{ | ||
return [ | ||
'@element' => '#selector', | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace Tests\Browser\Pages; | ||
|
||
use Laravel\Dusk\Page as BasePage; | ||
|
||
abstract class Page extends BasePage | ||
{ | ||
/** | ||
* Get the global element shortcuts for the site. | ||
* | ||
* @return array<string, string> | ||
*/ | ||
public static function siteElements(): array | ||
{ | ||
return [ | ||
'@element' => '#selector', | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* | ||
!.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* | ||
!.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* | ||
!.gitignore |
Oops, something went wrong.