-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* install pest and workbench * Update User.php * install pest * Fix styling * Update Pest.php * wip testing builder * Fix styling * wip tests * Fix styling * wip database connection for tests * wip testing * Update Pest.php * Fix styling * Fix styling * Update pest.yml * Update pest.yml * Update phpstan.neon.dist * Update phpstan.neon.dist * Update phpstan.neon.dist * Update pest.yml * Update pest.yml * Update pest.yml * wip workflows * Update pest.yml * Update pest.yml * Update pest.yml * Update pest.yml * Update pest.yml * Update pest.yml * Update pest.yml * Update pest.yml * Update pest.yml * Update pest.yml * Update pest.yml * Update pest.yml * Update pest.yml * Update pest.yml * Update pest.yml * Update pest.yml * Update pest.yml * Update pest.yml * Update pest.yml * Update pest.yml * Update pest.yml * Update pest.yml * Update pest.yml * wip testing * wip Implement arch test use App\Http\Controllers\Controller; -> use Illuminate\Routing\Controller; * let the workflow goooo * Fix styling * added brace possition * Fix styling * Update pest.yml * Update pest.yml * Delete moox-workflow.json * Update pest.yml * Update pest.yml * Update pest.yml --------- Co-authored-by: Kim-the-Diamond <[email protected]>
- Loading branch information
1 parent
16a61ae
commit c307e9d
Showing
106 changed files
with
626 additions
and
210 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 |
---|---|---|
@@ -1 +1 @@ | ||
{"version":"pest_3.0.0","defects":{"P\\Tests\\Feature\\RedirectTest::__pest_evaluable_it_will_lock_Wp":7},"times":{"P\\Tests\\Feature\\RedirectTest::__pest_evaluable_Lock_WP_config_is_true":0.001,"P\\Tests\\Feature\\RedirectTest::__pest_evaluable_it_will_lock_Wp":1.185,"Tests\\Unit\\ExampleTest::testThatTrueIsTrue":0.022,"P\\Packages\\core\\tests\\Unit\\ExampleTest::__pest_evaluable_core_example_unit":0.025,"Tests\\Feature\\LandingPageTest::testHealthyResponse":3.543,"Tests\\Feature\\LandingPageTest::testContainsWelcome":2.756,"P\\Tests\\Feature\\MooxLoginTest::__pest_evaluable_healthy_response":3.627,"P\\Tests\\Feature\\MooxLoginTest::__pest_evaluable_it_redirects_to_login":2.247,"P\\Tests\\Feature\\MooxLoginTest::__pest_evaluable_it_contains_Sign_in":2.539,"P\\Tests\\Feature\\PressLoginTest::__pest_evaluable_healthy_response":1.604,"P\\Tests\\Feature\\PressLoginTest::__pest_evaluable_it_redirects_to_login":1.734,"P\\Tests\\Feature\\PressLoginTest::__pest_evaluable_it_contains_Sign_in":1.688,"P\\Packages\\core\\tests\\Feature\\ExampleTest::__pest_evaluable_core_example_feature":0}} | ||
{"version":"pest_3.2.4","defects":{"P\\Packages\\builder\\tests\\Feature\\Item\\ItemTest::__pest_evaluable_items_Table_exists_with_correct_columns":8,"P\\Packages\\builder\\tests\\Feature\\Item\\ItemTest::__pest_evaluable_item_can_be_manually_created":8,"P\\Packages\\builder\\tests\\Feature\\Item\\ItemTest::__pest_evaluable_item_can_be_create_with_factory":8,"P\\Packages\\builder\\tests\\Feature\\Item\\ListItemTest::__pest_evaluable_it_can_render_ItemResource":8,"P\\Packages\\builder\\tests\\Feature\\Item\\ListItemTest::__pest_evaluable_it_can_list_Items":8,"Tests\\Feature\\LandingPageTest::testHealthyResponse":8,"Tests\\Feature\\LandingPageTest::testContainsWelcome":8,"P\\Tests\\Feature\\MooxLoginTest::__pest_evaluable_healthy_response":8,"P\\Tests\\Feature\\MooxLoginTest::__pest_evaluable_it_redirects_to_login":7,"P\\Tests\\Feature\\MooxLoginTest::__pest_evaluable_it_contains_Sign_in":7,"P\\Tests\\Feature\\PressLoginTest::__pest_evaluable_healthy_response":8,"P\\Tests\\Feature\\PressLoginTest::__pest_evaluable_it_redirects_to_login":8,"P\\Tests\\Feature\\PressLoginTest::__pest_evaluable_it_contains_Sign_in":8,"P\\Packages\\builder\\tests\\Feature\\ExampleTest::__pest_evaluable_example":8,"P\\Packages\\core\\tests\\Feature\\ExampleTest::__pest_evaluable_core_example_feature":8,"P\\Tests\\ArchTest::__pest_evaluable_expect__App__\u2192_toUseStrictTypes__\u2192_not_\u2192_toUse___die____dd____dump__":7,"P\\Tests\\ArchTest::__pest_evaluable_expect__App_Http__\u2192_toOnlyBeUsedIn__App_Http_":7,"P\\Tests\\ArchTest::__pest_evaluable_preset__\u2192_php_":7,"P\\Tests\\ArchTest::__pest_evaluable_preset__\u2192_security__\u2192_ignoring__md5_":7,"P\\Tests\\ArchTest::__pest_evaluable_expect__App__\u2192_toOnlyBeUsedIn__App_":7},"times":{"Tests\\Unit\\ExampleTest::testThatTrueIsTrue":0.091,"P\\Packages\\core\\tests\\Unit\\ExampleTest::__pest_evaluable_core_example_unit":0.001,"Tests\\Feature\\LandingPageTest::testHealthyResponse":0.454,"Tests\\Feature\\LandingPageTest::testContainsWelcome":0.015,"P\\Tests\\Feature\\MooxLoginTest::__pest_evaluable_healthy_response":0.554,"P\\Tests\\Feature\\MooxLoginTest::__pest_evaluable_it_redirects_to_login":1.823,"P\\Tests\\Feature\\MooxLoginTest::__pest_evaluable_it_contains_Sign_in":0.772,"P\\Tests\\Feature\\PressLoginTest::__pest_evaluable_healthy_response":0.585,"P\\Tests\\Feature\\PressLoginTest::__pest_evaluable_it_redirects_to_login":0.6,"P\\Tests\\Feature\\PressLoginTest::__pest_evaluable_it_contains_Sign_in":1.132,"P\\Packages\\core\\tests\\Feature\\ExampleTest::__pest_evaluable_core_example_feature":0.677,"P\\Packages\\builder\\tests\\Unit\\ExampleTest::__pest_evaluable_example":0.166,"P\\Packages\\builder\\tests\\Feature\\ExampleTest::__pest_evaluable_example":0.528,"P\\Packages\\builder\\tests\\Feature\\Item\\ItemTest::__pest_evaluable_items_Table_exists_with_correct_columns":0.551,"P\\Packages\\builder\\tests\\Feature\\Item\\ItemTest::__pest_evaluable_item_can_be_manually_created":0.596,"P\\Packages\\builder\\tests\\Feature\\Item\\ItemTest::__pest_evaluable_item_can_be_create_with_factory":0.679,"P\\Packages\\builder\\tests\\Feature\\Item\\ListItemTest::__pest_evaluable_it_can_render_ItemResource":2.094,"P\\Packages\\builder\\tests\\Feature\\Item\\ListItemTest::__pest_evaluable_it_can_list_Items":2.112,"P\\Tests\\ArchTest::__pest_evaluable_expect__App__\u2192_toUseStrictTypes__\u2192_not_\u2192_toUse___die____dd____dump__":0.699,"P\\Tests\\ArchTest::__pest_evaluable_expect__App_Models__\u2192_toBeClasses__\u2192_toExtend__Illuminate_Database_Eloquent_Model__\u2192_toOnlyBeUsedIn__App_Repositories__\u2192_ignoring__App_Models_User_":0.04,"P\\Tests\\ArchTest::__pest_evaluable_expect__App_Http__\u2192_toOnlyBeUsedIn__App_Http_":0.05,"P\\Tests\\ArchTest::__pest_evaluable_preset__\u2192_php_":0.038,"P\\Tests\\ArchTest::__pest_evaluable_preset__\u2192_security__\u2192_ignoring__md5_":0.058,"P\\Tests\\ArchTest::__pest_evaluable_expect__App__\u2192_not_\u2192_toUse___die____dd____dump__":0.641,"P\\Tests\\ArchTest::__pest_evaluable_expect__App__\u2192_toOnlyBeUsedIn__App_":0.141,"P\\Tests\\ArchTest::__pest_evaluable_expect__App__\u2192_toOnlyBeUsedIn__App__\u2192_ignoring__App_Models_User_":2.984}} |
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
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 |
---|---|---|
|
@@ -27,7 +27,6 @@ public function up() | |
->nullable(); | ||
$table->timestamps(); | ||
}); | ||
|
||
} | ||
|
||
public function down() | ||
|
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
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 |
---|---|---|
|
@@ -117,6 +117,5 @@ public function run() | |
'created_at' => '2023-12-14 08:44:35', | ||
'updated_at' => '2023-12-14 08:44:35', | ||
]); | ||
|
||
} | ||
} |
This file was deleted.
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,50 @@ | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
- "feature/**" | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
DB_CONNECTION: sqlite | ||
DB_DATABASE: :memory: | ||
APP_KEY: base64:1NxfrNErQ0vo1ZnPcLeVhnE7tOZdKlKiFORzPA92krM= | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: [ubuntu-latest] | ||
php: [8.2] | ||
laravel: [10.*, 11.*] | ||
stability: [prefer-lowest, prefer-stable] | ||
include: | ||
- laravel: 10.* | ||
testbench: 8.* | ||
- laravel: 11.* | ||
testbench: 9.* | ||
|
||
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} | ||
|
||
|
||
steps: | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: "8.2" | ||
coverage: none | ||
|
||
- name: Install dependencies | ||
run: | | ||
composer update | ||
- name: Run Pest | ||
run: ./vendor/bin/pest |
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,27 @@ | ||
<?php | ||
|
||
namespace Moox\Builder\Database\Factories; | ||
|
||
use Illuminate\Database\Eloquent\Factories\Factory; | ||
use Moox\Builder\Models\Item; | ||
|
||
class ItemFactory extends Factory | ||
{ | ||
protected $model = Item::class; | ||
|
||
/** | ||
* Define the model's default state. | ||
* | ||
* @return array<string, mixed> | ||
*/ | ||
public function definition() | ||
{ | ||
return [ | ||
'title' => $this->faker->sentence, | ||
'slug' => $this->faker->slug, | ||
'content' => $this->faker->paragraph, | ||
'status' => 'published', | ||
'type' => 'post', | ||
]; | ||
} | ||
} |
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
Oops, something went wrong.