更新内存测试:为 createMemoizeDict 添加更多测试用例,验证缓存功能和数据加载逻辑 #15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- "**" | |
env: | |
TZ: Asia/Shanghai | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- uses: yanhao98/composite-actions/setup-node-environment@main | |
- run: pnpm test | |
- name: "Memory test" | |
run: | | |
CI=true npx vitest run --testNamePattern "Memory test: createMemoizeDict"; | |
CI=true npx vitest run --testNamePattern "Memory test: MemoizeDict"; | |
- run: pnpm build | |
- run: pnpx pkg-pr-new publish | |
# - run: pnpx pkg-pr-new publish --compact # https://github.com/stackblitz-labs/pkg.pr.new?tab=readme-ov-file#setup |