From ada8bf645f471d0aff466d4b91beb1d07dc9f4dd Mon Sep 17 00:00:00 2001 From: Seongmin Lee Date: Fri, 19 Dec 2025 04:31:21 +0000 Subject: [PATCH] ci: add go mod tidy & gomod2nix check CI Signed-off-by: Seongmin Lee --- .tangled/workflows/test.yml | 17 +++++++++++++++++ 1 file(s) changed, 17 insertion(s)(+), 0 deletion(s)(-) diff --git a/.tangled/workflows/test.yml b/.tangled/workflows/test.yml --- a/.tangled/workflows/test.yml +++ b/.tangled/workflows/test.yml @@ -14,6 +14,23 @@ - name: patch static dir command: | mkdir -p appview/pages/static; touch appview/pages/static/x + - name: run go mod tidy + command: go mod tidy + + - name: run gomod2nix + command: | + HOME=$(mktemp -d) + echo $HOME + nix run .#gomod2nix + + - name: verify no changes + command: | + if ! git diff --quiet; then + echo "Error: gomod2nix produced changes. Please commit the updated files." + git diff + exit 1 + fi + - name: run linter environment: CGO_ENABLED: 1 -- tangled.sh