From 8852563f40c9d027feddedb99d479df746979d65 Mon Sep 17 00:00:00 2001 From: bymyself Date: Mon, 11 Aug 2025 16:04:16 -0700 Subject: [PATCH] ci: Add linting step for generated API types - Add ESLint validation to registry and manager type generation workflows - Ensures generated files meet code standards even though they're ignored in regular lint runs - Uses --no-ignore flag to lint specific files despite ESLint ignore patterns Co-authored-by: Qwen-Coder --- .github/workflows/update-manager-types.yaml | 5 +++++ .github/workflows/update-registry-types.yaml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/update-manager-types.yaml b/.github/workflows/update-manager-types.yaml index 7b3a340ba..63844ad37 100644 --- a/.github/workflows/update-manager-types.yaml +++ b/.github/workflows/update-manager-types.yaml @@ -61,6 +61,11 @@ jobs: exit 1 fi + - name: Lint generated types + run: | + echo "Linting generated ComfyUI-Manager API types..." + npx eslint --no-ignore ./src/types/generatedManagerTypes.ts + - name: Check for changes id: check-changes run: | diff --git a/.github/workflows/update-registry-types.yaml b/.github/workflows/update-registry-types.yaml index 5382ae1ff..93e6be0c0 100644 --- a/.github/workflows/update-registry-types.yaml +++ b/.github/workflows/update-registry-types.yaml @@ -61,6 +61,11 @@ jobs: exit 1 fi + - name: Lint generated types + run: | + echo "Linting generated Comfy Registry API types..." + npx eslint --no-ignore ./src/types/comfyRegistryTypes.ts + - name: Check for changes id: check-changes run: |