Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

ci.md

31 lines2.1 KB

1# CI quality gates
2​
3> For maintainers. Using T3 Code? See [docs/user](../user/).
4​
5[`.github/workflows/ci.yml`](../../.github/workflows/ci.yml) runs these quality gates on pull requests
6and pushes to `main`:
7​
8- **Check**: `vp check` (format and lint; this repo sets `typeCheck: false` in its lint options),
9 then `vpr typecheck` for the workspace type check. The same job
10 builds the desktop pipeline (`vp run build:desktop`) and verifies the preload bundle exists and
11 uses only imports that Electron's sandbox can load. The verifier parses imports, then executes the
12 trusted artifact with controlled bridge stubs to confirm that its required APIs are callable.
13- **Test**: `vp run test` across the workspace.
14- **Mobile Native Static Analysis**: `vp run lint:mobile` on macOS, wrapping
15 `scripts/mobile-native-static-check.ts`. A cheap Linux **Mobile Native Changes** job gates it:
16 the macOS runner only boots when the diff touches `apps/mobile` Swift/Kotlin sources, the
17 SwiftLint/detekt/ktlint configuration, the `Brewfile`, the check script, the root `package.json`
18 that defines `lint:mobile`, or `ci.yml`. Otherwise the job is skipped, which GitHub reports as
19 success for the required check. Renames are matched on both their old and new path. The gate fails
20 open in every other case: if the changed-file list cannot be resolved, GitHub truncates it, or the
21 gate job itself fails, the lint runs.
22- **Release Smoke**: exercises release-only workflow steps through `scripts/release-smoke.ts`, so
23 release breakage surfaces on PRs rather than at tag time.
24​
25`.github/workflows/release.yml` builds macOS (`arm64` and `x64`), Linux (`x64`), and Windows (`x64`)
26desktop artifacts from a single `v*.*.*` tag and publishes one GitHub release. It auto-enables
27signing only when platform credentials are present. macOS passkey builds additionally require
28`APPLE_TEAM_ID` and the `MACOS_PROVISIONING_PROFILE` secret; Windows uses Azure Trusted Signing.
29Without the core signing credentials, it still releases unsigned artifacts.
30​
31See [Release Checklist](../operations/release.md) for the full release/signing setup checklist.