check / check (push) Waiting to run
Takes .golangci.yml, .dockerignore, .gitignore, .editorconfig, the workflow and REPO_POLICIES.md from sneak/prompts dd4027b, keeping this repository's own entries after the shared content. Lint (golangci-lint v2.14.0) and test become Dockerfile phases that script/lint and script/test build alone and uncached; the image build depends on both, and script/cibuild bootstraps, runs script/check, then builds the image. The agent guidance file moves to AGENTS.md. The Go code is fixed for what the new configuration finds; reads that iterate rows now also report an iteration error. Model: opus-5-5
17 lines
398 B
Bash
Executable File
17 lines
398 B
Bash
Executable File
#!/bin/sh
|
|
# script/check: run all checks (test, lint, fmt-check). Our own
|
|
# extension to scripts-to-rule-them-all. test and lint are Docker
|
|
# phases; fmt-check is native, because a formatter writes the working
|
|
# tree. Must not modify any files.
|
|
set -eu
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd -P)"
|
|
|
|
main() {
|
|
"$SCRIPT_DIR/test"
|
|
"$SCRIPT_DIR/lint"
|
|
"$SCRIPT_DIR/fmt-check"
|
|
}
|
|
|
|
main "$@"
|