ci: add go mod tidy & gomod2nix check CI #901

merged
opened by boltless.me targeting master from sl/ywrpzwxwrtms
Changed files
+14
.tangled
workflows
+14
.tangled/workflows/test.yml
··· 14 14 command: | 15 15 mkdir -p appview/pages/static; touch appview/pages/static/x 16 16 17 + - name: run go mod tidy 18 + command: go mod tidy 19 + 20 + - name: run gomod2nix 21 + command: nix run .#gomod2nix 22 + 23 + - name: verify no changes 24 + command: | 25 + if ! git diff --quiet; then 26 + echo "Error: gomod2nix produced changes. Please commit the updated files." 27 + git diff 28 + exit 1 29 + fi 30 + 17 31 - name: run linter 18 32 environment: 19 33 CGO_ENABLED: 1