Skip to content

feat(games): add world-cup example with justfile-driven CI#610

Merged
dev-jodee merged 1 commit into
mainfrom
feat/add-world-cup
Jun 24, 2026
Merged

feat(games): add world-cup example with justfile-driven CI#610
dev-jodee merged 1 commit into
mainfrom
feat/add-world-cup

Conversation

@amilz

@amilz amilz commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

What

Adds the World Cup bracket-prediction game as a self-contained example under a new games/ category.

  • Program — Pinocchio (world-cup-program): init_config, submit_bracket, lock, post_result, post_goals, refresh_score, finalize, claim, close_bracket.
  • Clients — Codama-generated TypeScript (@solana/world-cup) and Rust.
  • Tests — 21 unit + 41 LiteSVM integration + 52 client = 114 passing.
  • Webapp — Vite + React shell wired end-to-end.

Why it's structured differently

It pins its own toolchain (pinocchio 0.11.1, codama, token-2022) in a nested workspace, so it stays out of the root Cargo workspace, the legacy pinocchio CI (.ghaignore), and root Biome.

New CI: .github/workflows/just.yml

Discovers examples by the presence of a justfile and runs just setup → check-generated → build → test on Solana stable. Skip list: .github/.justignore. This is intended as the pattern for future self-contained examples.

Notes

  • The webapp (~half the files, incl. a font asset) can be pruned if a leaner example is preferred — let me know.
  • Generated clients and .so artifacts are gitignored and regenerated from the committed IDL.

@amilz amilz self-assigned this Jun 24, 2026
@amilz amilz requested a review from dev-jodee June 24, 2026 17:10
@greptile-apps

greptile-apps Bot commented Jun 24, 2026

Copy link
Copy Markdown

Too many files changed for review. (212 files found, 100 file limit)

Add the World Cup bracket-prediction game as a self-contained example
under a new games/ category: a Pinocchio program with Codama-generated
TypeScript/Rust clients, LiteSVM integration tests, and a webapp shell.

It pins its own toolchain in a nested workspace, so it is excluded from
the root Cargo workspace, the legacy pinocchio CI (.ghaignore), and root
Biome. A new just.yml workflow discovers justfile-driven examples and runs
their setup/build/test recipes.

Co-authored-by: jo <17280917+dev-jodee@users.noreply.github.com>
@amilz amilz force-pushed the feat/add-world-cup branch from 3d2a8bf to 50ad179 Compare June 24, 2026 17:20
@dev-jodee dev-jodee merged commit 00c9ed0 into main Jun 24, 2026
17 checks passed
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