Skip to content

feat: add CI workflows for PR checks with path filtering, caching, and auto-labeling#63

Merged
lightsing merged 8 commits intodev/m2from
copilot/setup-ci-checks-for-prs
Mar 17, 2026
Merged

feat: add CI workflows for PR checks with path filtering, caching, and auto-labeling#63
lightsing merged 8 commits intodev/m2from
copilot/setup-ci-checks-for-prs

Conversation

Copy link

Copilot AI commented Mar 17, 2026

No CI ran on pull requests. The pre-commit config enforces 5 formatters (cargo fmt, taplo fmt, forge fmt, prettier, black) but none were checked in CI.

CI Workflows

  • Rust (ci-rust.yml): fmt (cargo + taplo), clippy -D warnings, tests. Uses Swatinem/rust-cache@v2. Toolchain version in single env.RUST_TOOLCHAIN var.
  • TypeScript (ci-typescript.yml): eslint, prettier, typecheck, build, test. pnpm store cached via actions/setup-node.
  • Contracts (ci-contracts.yml): forge fmt --check, build, test. Recursive submodule checkout for lib/ deps.
  • Python (ci-python.yml): black --check, ruff, mypy, pytest. Poetry-based install.
  • Docs (ci-docs.yml): Vitepress + mdBook build checks in parallel.

Path Filtering & Concurrency

Each workflow scopes on.pull_request.paths to its language/area so unrelated PRs don't burn CI minutes. All use concurrency groups with cancel-in-progress: true.

Auto-labeling

actions/labeler@v5 on pull_request_target applies labels (rust, typescript, python, contracts, docs, ci, dependencies) based on changed paths via .github/labeler.yml. sync-labels: true removes stale labels.

Security

All workflows set permissions: contents: read (least-privilege). Labeler adds only pull-requests: write.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits March 17, 2026 05:09
…d auto-labeling

Co-authored-by: lightsing <15951701+lightsing@users.noreply.github.com>
…e security

Co-authored-by: lightsing <15951701+lightsing@users.noreply.github.com>
Copilot AI changed the title [WIP] Add proper CI checks for pull requests Add CI workflows for pull requests with path filtering, caching, and auto-labeling Mar 17, 2026
Copilot AI requested a review from lightsing March 17, 2026 05:13
…y), black (Python)

Co-authored-by: lightsing <15951701+lightsing@users.noreply.github.com>
Copilot AI changed the title Add CI workflows for pull requests with path filtering, caching, and auto-labeling Add CI workflows for PR checks with path filtering, caching, and auto-labeling Mar 17, 2026
@lightsing lightsing marked this pull request as ready for review March 17, 2026 05:39
@lightsing lightsing merged commit 789dc46 into dev/m2 Mar 17, 2026
7 of 8 checks passed
@lightsing lightsing deleted the copilot/setup-ci-checks-for-prs branch March 17, 2026 05:40
@lightsing lightsing changed the title Add CI workflows for PR checks with path filtering, caching, and auto-labeling feat: add CI workflows for PR checks with path filtering, caching, and auto-labeling Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants