chore: add CI workflow with paths-filter and gate job#37
Merged
Conversation
- Add 4-job CI pipeline: frontend-lint, frontend-compile, backend-lint, backend-format - Add composite action for shared Node.js setup and caching - Use dorny/paths-filter for selective job execution - Add sparse checkout for Rust jobs - Add ci-gate job for branch protection compatibility - Configure concurrency control to cancel duplicate runs
… issues - Add --experimental-strip-types flag for computeNodeModulesCacheKey.ts execution - Set NODE_OPTIONS=--experimental-strip-types for npm ci preinstall scripts - Replace sparse-checkout with full checkout + out/ stub for backend-lint (tauri::generate_context!() requires frontendDist path to exist)
…elease - Replace deleted computeNodeModulesCacheKey.ts with package-lock.json hash - Use npm ci --ignore-scripts to avoid preinstall.ts crash (missing .npmrc disturl/target) - Disable PR trigger (workflow_dispatch only) until source code issues are resolved - Remove CI Gate from branch protection ruleset required status checks
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.
Summary
Add a CI pipeline for pull requests targeting main, with 4 parallel jobs and optimized execution.
Changes
New files
.github/workflows/ci.yml— CI workflow with 5 jobs (changes detection + 4 check jobs + gate).github/actions/setup-node-cache/action.yml— Composite action for shared Node.js setup and cachingCI Jobs
dorny/paths-filterto determine which jobs need to run-D warnings--checkOptimizations
src-tauri/Branch Protection Updates
CI Gateas required status check in repository rulesetdismiss_stale_reviews_on_pushfor re-approval after new pushesHow to Test
src-tauri/files → only backend jobs should runsrc/files → only frontend jobs should run