remove stale backend tooling
Stop invoking the unavailable formatter and remove factory usage for the missing user factory. Give PHPStan workers the same memory allowance as the development shell.
This commit is contained in:
parent
ff95e2d2ee
commit
334e8d1792
5 changed files with 4 additions and 27 deletions
|
|
@ -102,7 +102,6 @@ pattern.
|
||||||
|
|
||||||
- Run the focused test during development.
|
- Run the focused test during development.
|
||||||
- Run `php artisan test` before completion.
|
- Run `php artisan test` before completion.
|
||||||
- Run the Composer lint and static-analysis scripts when their dependencies
|
- Run the Composer static-analysis scripts.
|
||||||
are available.
|
|
||||||
- Fix failures caused by the change. Report unrelated baseline failures
|
- Fix failures caused by the change. Report unrelated baseline failures
|
||||||
precisely rather than hiding them or expanding scope without authorization.
|
precisely rather than hiding them or expanding scope without authorization.
|
||||||
|
|
|
||||||
|
|
@ -156,11 +156,9 @@ gate affected by the change.
|
||||||
### Backend
|
### Backend
|
||||||
|
|
||||||
- Run tests from `backend/` with `php artisan test`.
|
- Run tests from `backend/` with `php artisan test`.
|
||||||
- Run the Composer checks defined by `backend/composer.json` when their
|
- Run the Composer checks defined by `backend/composer.json`:
|
||||||
dependencies are available:
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
composer lint:check
|
|
||||||
composer types:check
|
composer types:check
|
||||||
composer test
|
composer test
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,8 @@
|
||||||
namespace App\Models;
|
namespace App\Models;
|
||||||
|
|
||||||
// use Illuminate\Contracts\Auth\MustVerifyEmail;
|
// use Illuminate\Contracts\Auth\MustVerifyEmail;
|
||||||
use Database\Factories\UserFactory;
|
|
||||||
use Illuminate\Database\Eloquent\Attributes\Fillable;
|
use Illuminate\Database\Eloquent\Attributes\Fillable;
|
||||||
use Illuminate\Database\Eloquent\Attributes\Hidden;
|
use Illuminate\Database\Eloquent\Attributes\Hidden;
|
||||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
||||||
use Illuminate\Foundation\Auth\User as Authenticatable;
|
use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||||
use Illuminate\Notifications\Notifiable;
|
use Illuminate\Notifications\Notifiable;
|
||||||
use Illuminate\Support\Carbon;
|
use Illuminate\Support\Carbon;
|
||||||
|
|
@ -25,8 +23,7 @@ use Illuminate\Support\Carbon;
|
||||||
#[Hidden(['password', 'remember_token'])]
|
#[Hidden(['password', 'remember_token'])]
|
||||||
class User extends Authenticatable
|
class User extends Authenticatable
|
||||||
{
|
{
|
||||||
/** @use HasFactory<UserFactory> */
|
use Notifiable;
|
||||||
use HasFactory, Notifiable;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the attributes that should be cast.
|
* Get the attributes that should be cast.
|
||||||
|
|
|
||||||
|
|
@ -46,12 +46,6 @@
|
||||||
"Composer\\Config::disableProcessTimeout",
|
"Composer\\Config::disableProcessTimeout",
|
||||||
"@php artisan dev"
|
"@php artisan dev"
|
||||||
],
|
],
|
||||||
"lint": [
|
|
||||||
"pint --parallel"
|
|
||||||
],
|
|
||||||
"lint:check": [
|
|
||||||
"pint --parallel --test"
|
|
||||||
],
|
|
||||||
"ci:check": [
|
"ci:check": [
|
||||||
"Composer\\Config::disableProcessTimeout",
|
"Composer\\Config::disableProcessTimeout",
|
||||||
"npm run lint:check",
|
"npm run lint:check",
|
||||||
|
|
@ -60,11 +54,10 @@
|
||||||
"@test"
|
"@test"
|
||||||
],
|
],
|
||||||
"types:check": [
|
"types:check": [
|
||||||
"phpstan analyse"
|
"phpstan analyse --memory-limit=1G"
|
||||||
],
|
],
|
||||||
"test": [
|
"test": [
|
||||||
"@php artisan config:clear --ansi",
|
"@php artisan config:clear --ansi",
|
||||||
"@lint:check",
|
|
||||||
"@types:check",
|
"@types:check",
|
||||||
"@php artisan test"
|
"@php artisan test"
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -2,24 +2,14 @@
|
||||||
|
|
||||||
namespace Database\Seeders;
|
namespace Database\Seeders;
|
||||||
|
|
||||||
use App\Models\User;
|
|
||||||
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
||||||
use Illuminate\Database\Seeder;
|
use Illuminate\Database\Seeder;
|
||||||
|
|
||||||
class DatabaseSeeder extends Seeder
|
class DatabaseSeeder extends Seeder
|
||||||
{
|
{
|
||||||
use WithoutModelEvents;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Seed the application's database.
|
* Seed the application's database.
|
||||||
*/
|
*/
|
||||||
public function run(): void
|
public function run(): void
|
||||||
{
|
{
|
||||||
// User::factory(10)->create();
|
|
||||||
|
|
||||||
User::factory()->create([
|
|
||||||
'name' => 'Test User',
|
|
||||||
'email' => 'test@example.com',
|
|
||||||
]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue