diff --git a/.gitea/workflows/cd.yml b/.gitea/workflows/cd.yml index dbeca81..7f1f19a 100644 --- a/.gitea/workflows/cd.yml +++ b/.gitea/workflows/cd.yml @@ -16,16 +16,17 @@ jobs: - name: ๐Ÿ“ฅ Checkout uses: actions/checkout@v4 + - name: ๐Ÿ“ฆ Install pnpm + run: npm install -g pnpm@10.32.1 + - name: ๐ŸŸข Setup Node uses: actions/setup-node@v4 with: node-version: 20 - - - name: ๐Ÿ“ฆ Install pnpm - run: npm install -g pnpm + cache: 'npm' # Note: cache: 'pnpm' requires additional setup action, using npm cache for basic caching or skipping, but we can just use simple setup - name: ๐Ÿ“ฆ Install deps - run: pnpm install + run: pnpm install --frozen-lockfile - name: ๐Ÿงน Lint run: pnpm lint @@ -43,16 +44,11 @@ jobs: exit 1 fi - - name: ๐Ÿงช Run Tests + - name: ๐Ÿงช Run Tests & Coverage run: | cd backend && pnpm test --watchAll=false cd ../frontend && pnpm test run - - name: ๐Ÿ—๏ธ Verify Build - run: | - cd backend && pnpm build - cd ../frontend && pnpm build - # ============================================================ # JOB 2 : Deploy โ€” Trigger Blue-Green on QNAP # ============================================================