-
Notifications
You must be signed in to change notification settings - Fork 0
/
Justfile
49 lines (35 loc) · 1.09 KB
/
Justfile
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
api_bins := "./api/vendor/bin/"
phpstan := api_bins + "phpstan"
php_cs_fixer := api_bins + "php-cs-fixer"
phpunit := api_bins + "phpunit"
symfony_server := "symfony --dir=api"
docker_compose := "docker compose"
setup:
@composer install
cd twitter-scrapper && \
uv venv && \
source .venv/bin/activate && \
uv pip sync requirements.txt
cd infra && bun install
just decrypt-secrets
decrypt-secrets:
sops --decrypt --input-type binary --output-type binary secrets.json | tee .env
encrypt-secrets:
sops -e --input-type binary --output-type binary .env | tee secrets.json
start:
{{symfony_server}} local:server:start -d --no-tls --port 8080
{{docker_compose}} up -d --remove-orphans
stop:
{{symfony_server}} local:server:stop
{{docker_compose}} down
lint: phpstan
phpstan:
@{{phpstan}} analyze -c api/phpstan.dist.neon
format: php-cs-fixer biome
biome:
biome format --fix
php-cs-fixer:
@{{php_cs_fixer}} fix --config api/.php-cs-fixer.dist.php
test: phpunit
phpunit:
@{{phpunit}} --coverage-html api/coverage -c api/phpunit.dist.xml