diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index fc874de..76a6570 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -26,15 +26,6 @@ jobs: with: dotnet-version: '10.0.x' - # Cache NuGet packages across runs (keyed on .csproj files) - - name: Cache NuGet packages - uses: actions/cache@v4 - with: - path: ~/.nuget/packages - key: nuget-${{ runner.os }}-${{ hashFiles('backend/*.csproj', 'backend-tests/*.csproj') }} - restore-keys: | - nuget-${{ runner.os }}- - - name: Restore run: dotnet restore backend/Nexus.Api.csproj @@ -63,19 +54,10 @@ jobs: corepack enable corepack prepare pnpm@latest --activate - # Cache pnpm store + node_modules (keyed on lockfile) - - name: Cache pnpm store - uses: actions/cache@v4 - with: - path: | - frontend/node_modules - ~/.pnpm-store - key: pnpm-${{ runner.os }}-${{ hashFiles('frontend/pnpm-lock.yaml') }} - restore-keys: | - pnpm-${{ runner.os }}- - + # --prefer-offline: use cached packages if available in the runner image + # --frozen-lockfile: fail if lockfile is out of date (CI should be strict) - name: Install dependencies - run: pnpm install --no-frozen-lockfile + run: pnpm install --frozen-lockfile --prefer-offline working-directory: frontend - name: Type check