]> git.maquefel.me Git - brevno-suite/hugo/commit
Add ./check.sh script
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 29 Jan 2026 12:23:19 +0000 (13:23 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 29 Jan 2026 13:24:54 +0000 (14:24 +0100)
commitd67925f5a1f596f2257d286ea97eb7fa2b025948
tree51f1bb6d25c9b689e1610ab4094c7f6717ce70b6
parent48dd4f469a79b05a150f246377b94d55f188a1f6
Add ./check.sh script

Running `mage check` takes too long time for user (and agent) iterations. That will eventualy run on CI.

This is a faster version that:

* Checks gofmt.
* Runs go vet.
* Runs staticcheck.
* Runs unit tests without the race flag.

It assumes that Go is installed, but will check if staticcheck is available and install it if not with go install.

It takes an optional argument to specify packages to check, otherwise it checks all packages.

This commit also enable local runs of the image golden tests.
AGENTS.md
CONTRIBUTING.md
check.sh [new file with mode: 0755]
resources/images/images_golden_integration_test.go