ops: add ops scripts

This commit is contained in:
2026-10-14 13:20:24 -07:00
parent 7c906f525a
commit 6d23a47815
6 changed files with 30 additions and 19 deletions

16
ops/lint.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/usr/bin/env sh
set -e
SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
SERVER_ROOT="$SCRIPT_DIR/.."
cd "$SERVER_ROOT" # Run script from server directory
./ops/build.sh --if-needed
GOLANGCI="./bin/golint"
echo "Linting $(go list ./... | wc -w) packages"
# Catches config keys in the wrong place, which are otherwise silently ignored.
$GOLANGCI config verify
$GOLANGCI run