Skip to content

chore: CI updates, unit tests, portable desktop build, unified Prettier#48

Open
victalejo wants to merge 1 commit into
kunzite-app:masterfrom
victalejo:master
Open

chore: CI updates, unit tests, portable desktop build, unified Prettier#48
victalejo wants to merge 1 commit into
kunzite-app:masterfrom
victalejo:master

Conversation

@victalejo

Copy link
Copy Markdown

Summary

Low-risk, isolated technical improvements — no product behavior changes.

  • CI: bumped GitHub Actions to v4 and Node 18 → 20; added yarn cache and
    --frozen-lockfile. The test workflow now runs lint, unit, and e2e
    as three parallel jobs with concurrency cancellation and also triggers on
    push to master. Fixed a latent bug in build.yml where
    download-artifact referenced a non-existent artifact name.
  • Unit tests: scaffolded Jest (jest-expo preset) in packages/008 with
    tests for Cdr (X-Call-ID precedence, inbound/outbound mapping,
    ringing → answered/missed transitions, wait/duration/total math) and
    utils (cleanPhoneNumber, genId, sleep). Root yarn test wires
    through lerna run test --no-bail.
  • Portable desktop build: replaced the chained
    rm -rf … && mv … && cp -R … one-liner with scripts/build-desktop.js,
    which validates web-build exists, uses fs primitives, and works on
    Windows. Added scripts/.eslintrc.json so the script lints with modern
    ecmaVersion.
  • Prettier consolidation: single .prettierrc.json + .prettierignore
    at the repo root; removed near-identical per-package copies in
    packages/008 and packages/008desktop. Effective config unchanged.
  • lint-staged fix: corrected the invalid glob **/*.{js}**/*.js
    (single-value brace expansion was triggering a warning on every commit).

…fied Prettier

- Bumped GitHub Actions to v4 and Node to 20; added yarn cache and
  --frozen-lockfile. Test workflow now runs lint, unit and e2e as three
  parallel jobs with concurrency cancellation; also triggers on push to
  master. Fixed build.yml download-artifact name mismatch.
- Added Jest (jest-expo) in packages/008 with tests for Cdr and utils
  helpers. Root yarn test wires through lerna run test --no-bail.
- Replaced the shell one-liner build-desktop with scripts/build-desktop.js
  for portability (works on Windows) and proper error handling. Added a
  local eslintrc so the script lints with modern ecmaVersion.
- Consolidated Prettier config into a single root .prettierrc.json and
  .prettierignore; removed duplicated per-package copies.
- Fixed invalid lint-staged glob "**/*.{js}" -> "**/*.js".
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.

1 participant