diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a3fef344..10a0d884 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,23 +29,10 @@ jobs: dotnet-version: '10.x' # ── Shell libraries ──────────────────────────────────────────────── - - name: Restore – Shell DDD lib - run: dotnet restore src/libs/shell/ddd/src/Ums.Shell.Ddd/Ums.Shell.Ddd.sln - - - name: Build – Shell DDD lib - run: dotnet build src/libs/shell/ddd/src/Ums.Shell.Ddd/Ums.Shell.Ddd.sln --no-restore --configuration Release - - - name: Test – Shell DDD lib - run: dotnet test src/libs/shell/ddd/src/Ums.Shell.Ddd/Ums.Shell.Ddd.sln --no-build --configuration Release --logger "console;verbosity=minimal" - - - name: Restore – Shell Factory lib - run: dotnet restore src/libs/shell/factory/src/Ums.Shell.Factory.sln - - - name: Build – Shell Factory lib - run: dotnet build src/libs/shell/factory/src/Ums.Shell.Factory.sln --no-restore --configuration Release - - - name: Test – Shell Factory lib - run: dotnet test src/libs/shell/factory/src/Ums.Shell.Factory.sln --no-build --configuration Release --logger "console;verbosity=minimal" + # Los shells cross (BeyondNetCode.Shell.*) se consumen como paquetes NuGet + # publicados en nuget.org (repos beyondnetcode/Shell.*), NO como código + # vendorizado. El `Restore – UMS API` de abajo los resuelve vía PackageReference, + # así que aquí no se restauran/compilan soluciones locales (que no existen). # ── Main API ─────────────────────────────────────────────────────── - name: Restore – UMS API diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eda21be0..2dbc2e0b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,17 +11,22 @@ jobs: ci: name: Build, Lint and Test (CI) runs-on: ubuntu-latest + # El workspace npm/nx del monorepo vive bajo src/, no en la raíz del repo. + defaults: + run: + working-directory: src steps: - name: Checkout Repository uses: actions/checkout@v4 with: fetch-depth: 0 # Required for SonarCloud analysis - - name: Setup Node.js v18 + - name: Setup Node.js v22 uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 22 # React Router v8 exige node >= 22 cache: 'npm' + cache-dependency-path: src/package-lock.json - name: Install Dependencies run: npm ci