Skip to content

CI: run SwiftFormat through hk - #13

Merged
davdroman merged 4 commits into
mainfrom
ci/use-hk-swiftformat
Sep 2, 2026
Merged

CI: run SwiftFormat through hk#13
davdroman merged 4 commits into
mainfrom
ci/use-hk-swiftformat

Conversation

@davdroman

Copy link
Copy Markdown
Owner

Summary

  • configure hk check and fix hooks for SwiftFormat
  • pin hk with Mise and regenerate the lockfile
  • run locked hk checks in CI while preserving GitHub annotations

Define shared check and fix hooks for SwiftFormat and run the locked hk command in CI while preserving GitHub Actions diagnostics.
Enable repository-level locked mode, select hk by major version, and invoke hk directly through the PATH configured by mise-action.
Run SwiftFormat through hk's pre-commit hook, protecting unstaged work with Git-backed stashing and staging formatter changes automatically.
Require a Mise version that supports config-scoped lock enforcement and document project tool and hook setup.
@davdroman
davdroman merged commit 018f6d0 into main Sep 2, 2026
14 checks passed
@davdroman
davdroman deleted the ci/use-hk-swiftformat branch September 2, 2026 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant