-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
43 lines (32 loc) · 1.05 KB
/
justfile
File metadata and controls
43 lines (32 loc) · 1.05 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
set shell := ["bash", "-eu", "-o", "pipefail", "-c"]
# List available recipes. This is the default target.
default: help
# Display all documented targets.
help:
@just --list
# Backward-compatible alias for installing project dependencies.
vendor: install
# Install all project dependencies.
install:
composer install
# Update the Composer lockfile.
lock:
composer update --with-all-dependencies
# Format code using php-cs-fixer.
fmt: install
vendor/bin/php-cs-fixer fix -v --using-cache=no
# Check code formatting.
fmtcheck: install
vendor/bin/php-cs-fixer fix -v --using-cache=no --dry-run
# Generate API reference using phpDocumentor.
docs: install
docker run --rm -v "$PWD:/data" "phpdoc/phpdoc:3"
# Run PHPUnit test suite.
test: install
composer test
# Run static analysis using PHPStan.
analyse: install
PHPSTAN_DISABLE_PARALLEL=1 vendor/bin/phpstan analyse --configuration=phpstan.neon --no-progress --memory-limit=1G --debug
# Generate SDK from the local OpenAPI specs.
generate:
cd codegen && go run ./... generate ../openapi.json ../src