mirror of
https://github.com/langgenius/dify.git
synced 2026-02-09 15:10:13 -05:00
perf: improve Jest caching and configuration in web tests (#29881)
This commit is contained in:
10
.github/workflows/web-tests.yml
vendored
10
.github/workflows/web-tests.yml
vendored
@@ -35,6 +35,14 @@ jobs:
|
||||
cache: pnpm
|
||||
cache-dependency-path: ./web/pnpm-lock.yaml
|
||||
|
||||
- name: Restore Jest cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: web/.cache/jest
|
||||
key: ${{ runner.os }}-jest-${{ hashFiles('web/pnpm-lock.yaml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-jest-
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
@@ -45,7 +53,7 @@ jobs:
|
||||
run: |
|
||||
pnpm exec jest \
|
||||
--ci \
|
||||
--runInBand \
|
||||
--maxWorkers=100% \
|
||||
--coverage \
|
||||
--passWithNoTests
|
||||
|
||||
|
||||
Reference in New Issue
Block a user