-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
65 lines (62 loc) · 1.95 KB
/
Taskfile.yml
File metadata and controls
65 lines (62 loc) · 1.95 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
---
version: '2'
tasks:
fix-cs:
desc: "Fix code style"
cmds:
- docker run --rm -iv $PWD:/data/ cytopia/php-cs-fixer fix
lint:
desc: "Quick tests not required to build app"
cmds:
- task: lint-composer
- task: lint-mnd
- task: lint-cs
lint-composer:
desc: "Validate composer configuration"
cmds:
- docker run --rm -v $PWD:/app composer:1.9 validate --no-check-publish
lint-cs:
desc: "Validate code style"
cmds:
- docker run --rm -iv $PWD:/data/ cytopia/php-cs-fixer
fix --dry-run --diff
lint-dockerfile:
desc: "Validate Dockerfile best practices"
cmds:
- docker run --rm -v $PWD:/app -w /app hadolint/hadolint:latest-debian
sh -c "find . -name Dockerfile | xargs -L1 hadolint"
lint-helm:
cmds:
- docker run --rm -tv "$PWD:$PWD" lachlanevenson/k8s-helm:v2.14.2
lint
-f "$PWD/{{ .CHART_PATH }}/values.yaml"
-f "$PWD/{{ .CHART_PATH }}/values-dev.yaml"
"$PWD/{{ .CHART_PATH }}"
lint-markdown:
cmds:
- docker run -i --rm -v $PWD:/work tmknom/markdownlint /work
lint-mnd:
desc: "Validate no magic numbers"
cmds:
- docker run --rm -v $PWD:/app dockerizedphp/phpmnd /app
--exclude=var --exclude=vendor
--exclude=src/Pcs/Resources/blockslib/blocks
--non-zero-exit-on-violation
lint-shell:
cmds:
- docker run -tv "$PWD:/mnt" koalaman/shellcheck:v0.5.0
--color=always --shell=bash --exclude=SC2181
build/docker/*/*.sh *.sh
lint-terraform:
cmds:
- docker run --rm -v ${PWD}:/data -t wata727/tflint deploy
lint-yaml:
cmds:
- docker run --rm -tv ${PWD}:/app sdesbure/yamllint sh -c "yamllint
/app/*.yml
/app/.*.yml"
test:
desc: "PHPStan & Test application. Run locally after deploy"
cmds:
- docker-compose exec php vendor/bin/phpstan analyse /app
- docker-compose exec php vendor/bin/codecept run --steps