From 30c53565a7aa0719969ea3d88d46e1821f86f1f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Balv=C3=ADn?= Date: Fri, 7 Aug 2026 21:34:09 +0200 Subject: [PATCH] build: align just test coverage gate with CI package list Assisted-by: GLM 5.2 --- justfile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/justfile b/justfile index d1dc650..921d3dd 100644 --- a/justfile +++ b/justfile @@ -18,8 +18,21 @@ build: @test -z "$(gofmt -l .)" || { echo "gofmt diff:"; gofmt -l .; exit 1; } # Full test suite + race detector + 80 % coverage gate. +# The coverage gate matches CI: it excludes packages that need hardware or +# are CLI glue (debug, cmd/gasm), so the number is identical locally and in CI. test: - go test -race -count=1 -coverprofile=coverage.out ./... + go test -race -count=1 ./... + go test -count=1 -coverprofile=coverage.out \ + sourcedock.dev/petrbalvin/gasm-devkit/arch \ + sourcedock.dev/petrbalvin/gasm-devkit/asm \ + sourcedock.dev/petrbalvin/gasm-devkit/ast \ + sourcedock.dev/petrbalvin/gasm-devkit/format \ + sourcedock.dev/petrbalvin/gasm-devkit/lexer \ + sourcedock.dev/petrbalvin/gasm-devkit/lint \ + sourcedock.dev/petrbalvin/gasm-devkit/lsp \ + sourcedock.dev/petrbalvin/gasm-devkit/parser \ + sourcedock.dev/petrbalvin/gasm-devkit/token \ + sourcedock.dev/petrbalvin/gasm-devkit/verify go tool cover -func=coverage.out | awk '/^total:/{gsub("%","",$3);if($3+0<80){print "coverage "$3"% < 80%";exit 1}print "coverage "$3"%"}' # Format all Go sources.