-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.mise.toml
More file actions
76 lines (60 loc) · 2.04 KB
/
.mise.toml
File metadata and controls
76 lines (60 loc) · 2.04 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
66
67
68
69
70
71
72
73
74
75
76
[tools]
node = "22"
pnpm = "9"
act = "latest"
actionlint = "latest"
hadolint = "latest"
# =============================================================================
# Lint tasks
# =============================================================================
[tasks.lint]
description = "Run all linters"
depends = ["lint:workflows", "lint:docker"]
[tasks."lint:workflows"]
description = "Lint GitHub Actions workflows with actionlint"
run = "actionlint"
[tasks."lint:docker"]
description = "Lint Dockerfiles with hadolint"
run = "hadolint docker/Dockerfile.*"
[tasks."lint:docker-check"]
description = "Validate Dockerfiles with Docker Build Checks (dry-run)"
run = """
for df in docker/Dockerfile.*; do
echo "Checking $df..."
docker build --check -f "$df" . || exit 1
done
echo "All Dockerfiles passed build checks"
"""
# =============================================================================
# Act tasks (local GitHub Actions runner)
# =============================================================================
[tasks.act]
description = "Run GitHub Actions locally using nektos/act"
run = "act"
[tasks."act:list"]
description = "List available GitHub Actions workflows"
run = "act -l"
[tasks."act:pull-request"]
description = "Run pull request workflow"
run = "act pull_request"
[tasks."act:push"]
description = "Run push workflow"
run = "act push"
[tasks."act:validate"]
description = "Validate/lint GitHub Actions workflows (dry-run)"
run = "act --dryrun"
[tasks."act:graph"]
description = "Show workflow execution graph"
run = "act --graph"
# =============================================================================
# Version bump tasks
# =============================================================================
[tasks."bump:major"]
description = "Bump major version (breaking changes)"
run = "./scripts/bump-version.sh major"
[tasks."bump:minor"]
description = "Bump minor version (new features)"
run = "./scripts/bump-version.sh minor"
[tasks."bump:patch"]
description = "Bump patch version (bug fixes)"
run = "./scripts/bump-version.sh patch"