File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ name : hk
3+
4+ permissions : {}
5+
6+ on : # yamllint disable-line rule:truthy
7+ push :
8+ branches :
9+ - main
10+ - renovate/**
11+ pull_request :
12+
13+ jobs :
14+ lint :
15+ concurrency :
16+ group : ${{ github.workflow }}-${{ github.event.pull_request.number ||
17+ github.ref }}
18+ cancel-in-progress : true
19+ permissions :
20+ contents : read
21+ packages : read
22+ # To report GitHub Actions status checks
23+ statuses : write
24+ runs-on : ubuntu-latest
25+ steps :
26+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
27+ with :
28+ persist-credentials : false
29+ - uses : jdx/mise-action@c37c93293d6b742fc901e1406b8f764f6fb19dac
30+ - name : hk checks
31+ run : hk check --no-progress --all
32+ env :
33+ HK_PKL_BACKEND : pklr
34+ - name : Display hk log on failure
35+ if : failure()
36+ run : cat /home/runner/.local/state/hk/output.log
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ {
2+ "MD013" : false
3+ }
Original file line number Diff line number Diff line change 1+ amends "package://github.com/jdx/hk/releases/download/v1.43.0/hk@1.43.0#/Config.pkl"
2+ import "package://github.com/jdx/hk/releases/download/v1.43.0/hk@1.43.0#/Builtins.pkl"
3+
4+ local linters = new Mapping<String, Step> {
5+ ["golangci-lint" ] = Builtins.golangci_lint
6+ ["markdown-lint" ] = Builtins.markdown_lint
7+ ["prettier" ] = Builtins.prettier
8+ ["zizmor" ] = Builtins.zizmor
9+ }
10+
11+ hooks {
12+ ["pre-commit" ] {
13+ stash = "git"
14+ steps = linters
15+ }
16+ ["fix" ] {
17+ fix = true
18+ steps = linters
19+ }
20+ ["check" ] {
21+ steps = linters
22+ }
23+ ["pre-push" ] {
24+ steps {
25+ ["go-vuln-check" ] = Builtins.go_vuln_check
26+ }
27+ }
28+ ["commit-msg" ] {
29+ steps {
30+ ["check-conventional-commit" ] = Builtins.check_conventional_commit
31+ }
32+ }
33+ }
Original file line number Diff line number Diff line change 11[tools ]
22go = " 1.26.2"
33"go:github.com/vladopajic/go-test-coverage/v2" = " 2.18.4"
4+ "go:golang.org/x/vuln/cmd/govulncheck" = " 1.2.0"
45golangci-lint = " 2.11.4"
56goreleaser = " 2.15.3"
67gotestsum = " 1.13.0"
8+ hk = " 1.43.0"
9+ "npm:markdownlint-cli" = " 0.48.0"
710prettier = " 3.8.3"
11+ zizmor = " 1.24.1"
812
913[env ]
1014COVEROUT = " cover.out"
You can’t perform that action at this time.
0 commit comments