Add quality gates and testing infrastructure#1
Merged
Conversation
## CI/CD - Add GitHub Actions workflow for CI (frontend + backend quality checks) - Run on push to main and pull requests ## Frontend Quality Gates - Configure ESLint with stricter rules (no-console, eqeqeq, etc.) - Add eslint-plugin-react-refresh - Set up Vitest for unit testing with jsdom environment - Add @testing-library/react for component testing - Configure coverage thresholds at 80% - Add test commands: test, test:watch, test:coverage, test:ui ## Backend Quality Gates - Rust format check (cargo fmt) - Clippy linting (cargo clippy) - Unit tests with cargo test - Add tempfile dev dependency for fs tests ## Test Coverage - src/lib/format.ts: 97% coverage (59 tests) - src/lib/constants.ts: 100% coverage - src-tauri/src/utils/format.rs: Full test coverage - src-tauri/src/utils/fs.rs: Full test coverage ## New Files - .github/workflows/ci.yml - vitest.config.ts - src/test/setup.ts - src/lib/format.ts + tests - src/lib/constants.ts + tests - src-tauri/src/utils/format.rs - src-tauri/src/utils/fs.rs 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit adds two new entries to the .gitignore file: the .zenflow/ directory and the GEMINI.md file. This ensures these files and directories are properly ignored by git.
- Reordered module declarations in lib.rs and mod.rs for better structure - Cleaned up trailing whitespace and formatting in various model files - No functional changes, only code organization and formatting improvements
Add tests for format_size, get_relative_time, format_relative_time with various time units, and file system utilities including get_accessed_time and get_size edge cases.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI/CD
Frontend Quality Gates
Backend Quality Gates
Test Coverage
New Files
🤖 Generated with Claude Code