Open History to see the last commit
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 still exports its expected symbols.
12- **Test**: `vp run test` across the workspace.
13- **Mobile Native Static Analysis**: `vp run lint:mobile` on macOS, wrapping
14 `scripts/mobile-native-static-check.ts`. A cheap Linux **Mobile Native Changes** job gates it:
15 the macOS runner only boots when the diff touches `apps/mobile` Swift/Kotlin sources, the
16 SwiftLint/detekt/ktlint configuration, the `Brewfile`, the check script, the root `package.json`
17 that defines `lint:mobile`, or `ci.yml`. Otherwise the job is skipped, which GitHub reports as
18 success for the required check. Renames are matched on both their old and new path. The gate fails
19 open in every other case: if the changed-file list cannot be resolved, GitHub truncates it, or the
20 gate job itself fails, the lint runs.
21- **Release Smoke**: exercises release-only workflow steps through `scripts/release-smoke.ts`, so
22 release breakage surfaces on PRs rather than at tag time.
23
24`.github/workflows/release.yml` builds macOS (`arm64` and `x64`), Linux (`x64`), and Windows (`x64`)
25desktop artifacts from a single `v*.*.*` tag and publishes one GitHub release. It auto-enables
26signing only when platform credentials are present. macOS passkey builds additionally require
27`APPLE_TEAM_ID` and the `MACOS_PROVISIONING_PROFILE` secret; Windows uses Azure Trusted Signing.
28Without the core signing credentials, it still releases unsigned artifacts.
29
30See [Release Checklist](../operations/release.md) for the full release/signing setup checklist.