更新 CI 工作流:为内存测试添加 CI 环境变量以确保测试一致性 #14
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" | |
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 |