Repository navigation
Expand file tree
/
Copy pathmise.toml
More file actions
60 lines (53 loc) · 1.63 KB
/
Copy pathmise.toml
File metadata and controls
60 lines (53 loc) · 1.63 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
#:schema https://mise.jdx.dev/schema/mise.json
min_version = "2026.12.0"
[settings]
locked = true
minimum_release_age = "3d"
activate_aggressive = true
use_versions_host = false
[tools]
# https://github.com/editorconfig-checker/editorconfig-checker/releases/tag/v4.0.2
editorconfig-checker = "4.0.2"
# https://github.com/hadolint/hadolint/releases/tag/v2.15.1
hadolint = "2.15.1"
# https://github.com/jdx/jactionlint/releases/tag/v2.7.0
jactionlint = "2.7.0"
# https://github.com/koalaman/shellcheck/releases/tag/v0.11.0
shellcheck = "0.11.0"
# https://github.com/mvdan/sh/releases/tag/v3.15.0
shfmt = "3.15.0"
[tasks.lint]
description = "Lint and fix"
run = [
"jactionlint --fix --strict-exit",
"shfmt --write scripts src",
"editorconfig-checker -fix -exclude '^LICENSE$'",
{ parallel = [
"docker build --check --progress=quiet src",
"hadolint src/Dockerfile",
"git ls-files -z '*.sh' | xargs -0 shellcheck",
] },
]
[tasks.test]
description = "Test an image"
usage = 'arg "[image]" help="The image to test" default="peakimages/sqlite:local"'
run = 'scripts/test.sh "$usage_image"'
[tasks."test:lint"]
description = "Lint without fixing"
run = [
{ parallel = [
"docker build --check --progress=quiet src",
"hadolint src/Dockerfile",
"git ls-files -z '*.sh' | xargs -0 shellcheck",
"shfmt --diff scripts src",
"jactionlint --strict-exit",
"editorconfig-checker -exclude '^LICENSE$'",
] },
]
[tasks."test:all"]
description = "Lint without fixing, then test an image"
usage = 'arg "[image]" help="The image to test" default="peakimages/sqlite:local"'
run = [
{ task = "test:lint" },
{ task = "test", args = ["{{ usage.image }}"] },
]