-
-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
- Loading branch information
Showing
10 changed files
with
159 additions
and
16 deletions.
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
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 |
---|---|---|
|
@@ -17,6 +17,7 @@ jobs: | |
- "ubuntu-latest" | ||
php: | ||
- 8.2 | ||
- 8.3 | ||
phpunit: | ||
- "~10.3.0" | ||
- "~10.2.0" | ||
|
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
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,31 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
$workingPath = getcwd(); | ||
$BRANCH = '9.x'; | ||
|
||
require __DIR__.'/../vendor/autoload.php'; | ||
|
||
$files = new Illuminate\Filesystem\Filesystem(); | ||
|
||
echo ">>>> Checkout branch {$BRANCH}"; | ||
|
||
Illuminate\Support\Collection::make([ | ||
"git checkout $BRANCH", | ||
"git submodule init", | ||
"git submodule foreach git reset --hard HEAD", | ||
"git submodule foreach git checkout $BRANCH", | ||
"git submodule foreach git pull", | ||
])->each(function ($command) use ($workingPath) { | ||
Symfony\Component\Process\Process::fromShellCommandline($command, $workingPath)->mustRun(); | ||
}); | ||
|
||
$files->copy("{$workingPath}/core/testbench.yaml", "{$workingPath}/testbench.yaml"); | ||
|
||
Illuminate\Support\Collection::make([ | ||
...$files->glob("{$workingPath}/core/workbench") | ||
])->flatten() | ||
->filter(fn ($file) => is_file($file)) | ||
->each(function ($file) use ($files, $workingPath) { | ||
$files->copy($file, "{$workingPath}/workbench".Illuminate\Support\Str::after($file, "{$workingPath}/core/workbench")); | ||
}); |
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
Submodule core
updated
13 files
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
42 changes: 42 additions & 0 deletions
42
workbench/database/migrations/2013_07_26_182750_create_testbench_users_table.php
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,42 @@ | ||
<?php | ||
|
||
use Carbon\Carbon; | ||
use Illuminate\Database\Migrations\Migration; | ||
|
||
return new class extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
Schema::create('testbench_users', function ($table) { | ||
$table->increments('id'); | ||
$table->string('email'); | ||
$table->string('password'); | ||
|
||
$table->timestamps(); | ||
}); | ||
|
||
$now = Carbon::now(); | ||
|
||
DB::table('testbench_users')->insert([ | ||
'email' => 'crynobone@gmail.com', | ||
'password' => Hash::make('123'), | ||
'created_at' => $now, | ||
'updated_at' => $now, | ||
]); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function down() | ||
{ | ||
Schema::drop('testbench_users'); | ||
} | ||
}; |