From be2b5bffa670f4be0db73c966353b48e4d3626c3 Mon Sep 17 00:00:00 2001 From: aarroyo Date: Sat, 25 Jul 2026 19:18:56 -0500 Subject: [PATCH] =?UTF-8?q?ci:=20pipeline=20JS=20scopeada=20a=20app-web=20?= =?UTF-8?q?y=20sin=20el=20flag=20inv=C3=A1lido=20--code-coverage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit El paso de tests moría con `--code-coverage` (no es flag de vitest ni de dotnet test → MSB1001 Unknown switch). Además el job `ci` no instala el SDK .NET 10, así que correr app-api-dotnet (dotnet test/build) fallaría por falta de runtime. - Se quita `--code-coverage`. - lint/test/build se scopean a `--projects=app-web`: este job es la pipeline JS/frontend; el backend .NET tiene su CI dedicada en build.yml (con setup-dotnet). Réplica local verde: nx lint app-web 0 errores; nx test app-web 1476/1476. Co-Authored-By: Claude Opus 4.8 --- .github/workflows/ci.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 42c41b3a..c2693925 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,14 +38,19 @@ jobs: # da 0 vuln de producción sin enmascarar riesgo real de lo entregado. run: npm audit --omit=dev --audit-level=high + # Este job es la pipeline JS/frontend del monorepo. El backend .NET tiene su propia + # CI dedicada (.github/workflows/build.yml, con setup-dotnet), así que aquí se scopea a + # `app-web` — este runner no instala el SDK .NET 10 y `dotnet test/build` fallaría. - name: Run Global Linter - run: npx nx run-many --target=lint + run: npx nx run-many --target=lint --projects=app-web - - name: Run Unit Tests with Coverage - run: npx nx run-many --target=test --code-coverage + - name: Run Unit Tests + # `--code-coverage` no es un flag válido de vitest/dotnet (vitest usa `--coverage`). + # Se corre el target `test` (vitest run); la cobertura se gestiona con test:coverage. + run: npx nx run-many --target=test --projects=app-web - - name: Build Applications (Vite & NestJS) - run: npx nx run-many --target=build + - name: Build Application (Vite) + run: npx nx run-many --target=build --projects=app-web # 2. Advanced Security Analysis (CodeQL) codeql: