Skip to content

ci: add parallelized pipeline with node_modules caching (#368)#382

Merged
joelpeace48-cell merged 1 commit into
FinesseStudioLab:mainfrom
codemagician1949:feat/issue-368-ci-performance
May 29, 2026
Merged

ci: add parallelized pipeline with node_modules caching (#368)#382
joelpeace48-cell merged 1 commit into
FinesseStudioLab:mainfrom
codemagician1949:feat/issue-368-ci-performance

Conversation

@codemagician1949
Copy link
Copy Markdown

Summary

Reduces CI wall-clock time by parallelizing backend, frontend, and contracts jobs and introducing a node_modules cache keyed on package-lock.json so npm ci is skipped on cache hits.

Changes

  • .github/workflows/ci-performance.yml — new parallelized workflow with three concurrent jobs:
    • backend: checkout → restore nm cache → install (if miss) → lint → typecheck → test
    • frontend: checkout → restore nm cache → install (if miss) → build → lint → test
    • contracts: checkout → restore cargo cache → fmt → clippy → test → build WASM
    • node_modules cache key: nm-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
    • Cargo cache key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
  • .github/workflows/frontend-ci.yml — replaced npm install with npm ci for deterministic, reproducible installs

Why This Helps

Before After
Jobs run sequentially or in separate workflows without shared caching All three suites run in parallel
npm install mutates lockfile on frontend npm ci respects lockfile exactly
No node_modules cache Cache hit skips install entirely on repeat runs

Closes #368
Closes #369
Closes #370
Closes #360

…esseStudioLab#368

- Add ci-performance.yml: runs backend, frontend, and contracts jobs in parallel
- Each job caches node_modules keyed on package-lock.json hash to skip npm ci on cache hit
- Contracts job caches ~/.cargo/registry, ~/.cargo/git, and target/
- Fix frontend-ci.yml: replace npm install with npm ci for deterministic installs
- Parallel jobs cut CI wall-clock time by running all three suites concurrently
@vercel
Copy link
Copy Markdown

vercel Bot commented May 29, 2026

@Gbangbolaoluwagbemiga is attempting to deploy a commit to the joelpeace48-cell's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 29, 2026

@codemagician1949 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@joelpeace48-cell joelpeace48-cell merged commit 5cf92d9 into FinesseStudioLab:main May 29, 2026
0 of 8 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

3 participants