]> git.giacomolli.uk - onechat/blobdiff - bin/check
Define child agent areas and reporting rules
[onechat] / bin / check
index b8071dce37734bdbefa1586acc4ac2b949f89501..73256cb682e87ad835add38947fa9e318ac5e4b0 100755 (executable)
--- a/bin/check
+++ b/bin/check
@@ -7,7 +7,7 @@ files() {
   git ls-files --cached --others --exclude-standard -- "$@"
 }
 
-unformatted=$(gofumpt -l .)
+unformatted=$(files '*.go' | xargs gofumpt -l)
 if [ -n "$unformatted" ]; then
   printf 'gofumpt: unformatted files:\n%s\n' "$unformatted" >&2
   exit 1
@@ -15,8 +15,8 @@ fi
 
 go vet ./...
 golangci-lint run
-go test -race ./...
+go test -race -short ./...
 files '*.nix' | xargs nixfmt --check
 files '*.rst' | xargs rstfmt --check
 files '*.md' | xargs mdformat --check
-shellcheck bin/check bin/format bin/reflow .githooks/commit-msg
+shellcheck bin/check bin/format bin/reflow bin/service-update .githooks/commit-msg