chore: cache nextjs build for CI (#1771)

This commit is contained in:
Huang Xin
2025-08-09 13:28:38 +08:00
committed by GitHub
parent 09e65211b4
commit 452dc9f3e6
3 changed files with 11 additions and 3 deletions
+9 -2
View File
@@ -45,7 +45,7 @@ jobs:
- name: setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9.15.1
version: 10.14.0
- name: setup node
uses: actions/setup-node@v4
@@ -53,6 +53,13 @@ jobs:
node-version: 22
cache: pnpm
- name: cache Next.js build
uses: actions/cache@v4
with:
path: apps/readest-app/.next/cache
key: nextjs-${{ runner.os }}-${{ hashFiles('apps/readest-app/package.json', 'pnpm-lock.yaml') }}
restore-keys: nextjs-${{ runner.os }}-
- name: install Dependencies
working-directory: apps/readest-app
run: |
@@ -61,7 +68,7 @@ jobs:
- name: run tests
working-directory: apps/readest-app
run: |
pnpm test -- --watchAll=false
pnpm test -- --watch=false
- name: build the web App
if: matrix.config.platform == 'web'