Skip to content

Commit 8d2cc84

Browse files
committed
chore(dev): add actionlint for GitHub Actions linting
1 parent b694dac commit 8d2cc84

3 files changed

Lines changed: 21 additions & 2 deletions

File tree

hk.pkl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ local builtin_checks = new Mapping<String, Step> {
7474
exclude = generated_excludes + template_excludes
7575
hide = true
7676
}
77+
["actionlint"] {
78+
glob = List(".github/workflows/*.yml", ".github/workflows/*.yaml")
79+
check = "actionlint {{files}}"
80+
batch = true
81+
hide = true
82+
}
7783
}
7884

7985
// =============================================================================

mise.lock

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mise.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ dprint = "0.50.2" # MD/JSON/YAML formatting (Rust, fast)
3333

3434
# --- Git & CI ---
3535
hk = "1.28.0" # Git hooks manager
36+
actionlint = "1.7.9" # GitHub Actions linting
3637
git-cliff = "2.10.1" # Changelog generation
3738

3839
# --- Configuration ---
@@ -69,8 +70,11 @@ swift test --filter {{arg(name='filter')}} 2>&1 | xcsift -w -f toon --toon-key-f
6970
"""
7071

7172
[tasks.lint]
72-
description = "Run SwiftLint"
73-
run = "swiftlint lint --strict Sources Tests 2>&1 | xcsift -f toon --toon-key-folding safe"
73+
description = "Run SwiftLint and actionlint"
74+
run = """
75+
swiftlint lint --strict Sources Tests 2>&1 | xcsift -f toon --toon-key-folding safe
76+
actionlint
77+
"""
7478

7579
[tasks."format:swift"]
7680
description = "Format Swift code"

0 commit comments

Comments
 (0)