From ada8bf645f471d0aff466d4b91beb1d07dc9f4dd Mon Sep 17 00:00:00 2001 From: Seongmin Lee Date: Fri, 19 Dec 2025 13:31:21 +0900 Subject: [PATCH] ci: add go mod tidy & gomod2nix check CI Signed-off-by: Seongmin Lee --- .tangled/workflows/test.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.tangled/workflows/test.yml b/.tangled/workflows/test.yml index 69a1b62c..45e8bdca 100644 --- a/.tangled/workflows/test.yml +++ b/.tangled/workflows/test.yml @@ -14,6 +14,23 @@ steps: 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 -- 2.51.2