magicblock-labs / magicblock-labs/magicblock-engine-examples

Run CI only for examples changed in a PR

Open
#107 0 comments 0 reactions 1 assignee View on GitHub

@dhruvja is already working on this.

Since Jul 2, 2026.

Dominant language
TypeScript
Stars
54
Forks
36
Avg merge
12h 28m
Merged PRs (30d)
2

Description

Currently, CI runs broadly even when a PR only updates a single example. This makes CI slower and noisier than necessary.

We should update the CI workflow so it detects which example directories were changed and only runs the relevant checks for those examples.

Expected behavior
  • If spl-tokens/** changes, run CI for spl-tokens only.
  • If anchor-counter/** changes, run CI for anchor-counter only.
  • If multiple examples change, run CI for each changed example.
  • If shared scripts, root config, or workflow files change, run the full CI matrix.
  • Documentation-only changes should skip example builds/tests where safe.
Why
  • Reduces CI runtime.
  • Avoids unrelated example failures blocking focused PRs.
  • Makes PR feedback easier to understand.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.