新增内存测试:为 createMemoizeDict 和 MemoizeDict 添加内存使用检查测试用例,更新 CI 工作流以包含内存测试 #10
This file contains 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: createMemoizeDict" | |
run: | | |
npx vitest run --testNamePattern "Memory test: createMemoizeDict" | |
- name: "Memory test: MemoizeDict" | |
run: | | |
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 |