-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
72 lines (62 loc) · 1.78 KB
/
Copy pathTaskfile.yaml
File metadata and controls
72 lines (62 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: '3'
tasks:
fixtures:
desc: Generate fixtures
cmds:
- rm -f var/data.db
- symfony console d:s:c --quiet
- symfony console d:s:u --force --quiet
- symfony console a:f:l
composer:
desc: Install PHP vendors
cmds:
- symfony composer install
sources:
- composer.lock
generates:
- vendor/**/*
start:
desc: Start Symfony server
cmds:
- symfony serve -d
stop:
desc: Stop Symfony server
cmds:
- symfony server:stop
lint:
desc: Check code style, static analysis...
cmds:
- symfony console doctrine:schema:validate
- symfony php vendor/bin/ecs
- symfony php vendor/bin/twig-cs-fixer lint
- symfony console biomejs:download --quiet
- bin/biome check
- task: phpstan
- symfony console lint:twig templates
- symfony console lint:yaml config translations
- symfony composer audit
cs-fix:
desc: Fix code style
cmds:
- symfony php vendor/bin/ecs --fix
- symfony php vendor/bin/twig-cs-fixer lint --fix
- bin/biome check --write --unsafe
phpstan:
desc: Run PHPStan analysis
cmds:
- symfony php vendor/bin/phpstan analyse
phpstan-baseline:
desc: Generate PHPStan baseline
cmds:
- symfony php vendor/bin/phpstan analyse --generate-baseline
test:
desc: Run tests
env:
APP_ENV: test
cmds:
- symfony php vendor/bin/phpunit
ci:
desc: Run lint & tests
cmds:
- task: lint
- task: test