Commit Graph
13 Commits
Author SHA1 Message Date
overtrue 2216caac75 fix: remove deprecated server config fetch and fix CI workflow
- Remove deprecated fetchConfigFromServer function
- Update getConfig to use localStorage > browser > default priority
- Fix GitHub Actions workflow: remove unnecessary dependency installation, upgrade CodeQL to v4, use proper test commands
- Add JUnit reporter to vitest config for CI test results
- Update tests to reflect new configuration priority (no server config)
- All 167 tests passing
2026-01-20 21:35:01 +08:00
马登山 2b00fdc8d2 docs: remove code comments about config.json 2026-01-12 16:56:43 +08:00
马登山 df2c7a1ce3 fix: remove config.json request 2025-12-09 11:58:09 +08:00
overtrue 29096d6e38 chore: remove performance tests from CI/CD pipelines
- Delete tests/utils/config-helpers.performance.test.ts
- Remove performance-tests job from test.yml
- Remove benchmarks job from quality.yml
- Remove test:performance script from package.json
- Update all workflow dependencies and summaries
- Update documentation to remove performance test references
2025-11-01 00:19:09 +08:00
overtrue 6ab024be1c style: format code with Prettier
- Auto-format all files to comply with Prettier rules
- Fix code style issues in 545 files
2025-11-01 00:03:01 +08:00
overtrue dfc9340193 wip: object list fixed 2025-10-29 22:37:28 +08:00
overtrue 2a7c74d62e refactor: replace legacy app wrappers with shadcn components 2025-10-28 18:56:13 +08:00
overtrue 50cef5195b refactor: tailwindcss 2025-10-27 22:04:05 +08:00
overtrue f9c11b4c77 fix: resolve prettier formatting issues for CI
- Add .cursor, .github, .specify directories to .prettierignore
- Add auto-generated type files to .prettierignore
- Fix formatting in test files
- Fixes GitHub Actions lint failures
2025-10-07 23:50:59 +08:00
overtrue 9711879a4b test: add comprehensive unit tests for core utilities
- Add tests for array.ts (tree conversion, 100% coverage)
- Add tests for functions.ts (byte formatting, random strings, 100% coverage)
- Add tests for error-handler.ts (error parsing and handling, 98% coverage)
- Add tests for logger.ts (environment-aware logging)
- Add tests for bucket-policy.ts (S3 policy validation and management, 74% coverage)
- Add tests for lib/utils.ts (className merging, ref updates, 100% coverage)

Total: 121 new test cases, all passing
Core utilities coverage: 67.61%
2025-10-07 23:44:33 +08:00
overtrue f05935114a 🐛 fix: 修复 GitHub Actions 工作流 YAML 语法错误
- 修复 dependencies.yml 中多行字符串缩进不一致的问题
- 将 commit-message 改为单行字符串格式
- 修复 reviewers 字段的空值语法
- 确保所有 YAML 文件符合严格的语法规范
- 通过 prettier 格式化所有工作流文件
2025-10-07 23:19:01 +08:00
overtrue e52686435e 🐛 fix: 修复 CI/CD 流水线中的 TypeScript 类型错误
- 添加缺失的 expect 导入到 test-helpers.ts
- 添加缺失的 afterEach 导入到 performance 测试
- 添加缺失的 beforeEach 导入到 setup.ts
- 修复 LocalStorageMock 中的 this 上下文问题
- 更新 config.ts 以适配重构后的 ConfigResult 类型
- 所有测试通过 ✅
- TypeScript 类型检查通过 ✅
2025-10-07 23:04:57 +08:00
overtrue 42b6f36acd ✨ feat: 添加完整的测试套件和 CI/CD 流水线
🧪 测试套件:
- 添加 62 个测试用例(单元 + 集成 + 性能测试)
- 达到 98.5% 代码覆盖率(语句)
- 达到 93.5% 分支覆盖率
- 达到 100% 函数覆盖率
- 包含完整的 Mock 和测试工具

🚀 CI/CD 流水线:
- 测试流水线:多版本测试、覆盖率报告、浏览器兼容性
- 质量流水线:代码格式、类型检查、依赖安全、复杂度分析
- 发布流水线:自动构建、部署、GitHub Release 创建
- 依赖管理:自动安全审计、依赖更新、测试验证

📚 文档和模板:
- PR 模板和 Issue 模板
- 完整的 CI/CD 使用文档
- 测试套件说明文档

🔧 配置优化:
- 重构 config-helpers.ts 模块
- 改进类型定义和错误处理
- 优化配置获取逻辑和性能
2025-10-07 22:56:36 +08:00