This repository was archived by the owner on Oct 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbatect-bundle.yml
86 lines (75 loc) · 1.99 KB
/
batect-bundle.yml
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
containers:
editorconfig-checker:
image: mstruebing/editorconfig-checker:2.7.2
volumes:
- local: <{batect.project_directory}
container: /code
options: ro
working_directory: /code
shfmt:
image: mvdan/shfmt:v3.7.0
volumes:
- local: <{batect.project_directory}
container: /code
options: ro
working_directory: /code
test-env:
build_directory: .batect/test-env
volumes:
- local: <{batect.project_directory}
container: /code
options: cached
working_directory: /code
privileged: true
yamllint:
build_directory: .batect/yamllint
volumes:
- local: <{batect.project_directory}
container: /code
options: ro
working_directory: /code
yapf:
build_directory: .batect/yapf
volumes:
- local: <{batect.project_directory}
container: /code
options: ro
working_directory: /code
tasks:
check-format:editorconfig-compliance:
description: Check formatting of all files against the configuration in .editorconfig.
group: Formatting check tasks
run:
container: editorconfig-checker
command: ec -exclude ^\.git
check-format:python:
description: Check formatting of Python code.
group: Formatting check tasks
run:
container: yapf
command: yapf --diff --recursive .
check-format:shell:
description: Check formatting of shell scripts.
group: Formatting check tasks
run:
container: shfmt
command: -d .
check-format:yaml:
description: Check formatting of all YAML files.
group: Formatting check tasks
run:
container: yamllint
command: yamllint --strict .
test:
description: Run the tests.
group: Testing tasks
run:
container: test-env
command: python3 test/tests.py
include:
- type: git
repo: https://github.com/batect/shellcheck-bundle.git
ref: 0.22.0
- type: git
repo: https://github.com/batect/hadolint-bundle.git
ref: 0.29.0