Skip to content

Commit 92300b5

Browse files
dfallingclaude
andcommitted
Drop codegen + staleness check from CI
No schema in CI (intentionally — public repo). Generated types stay committed; regenerate locally after editing .graphql files. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 50a037e commit 92300b5

2 files changed

Lines changed: 4 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,6 @@ jobs:
2222

2323
- run: bun install --frozen-lockfile
2424

25-
- name: GraphQL codegen
26-
run: bun run codegen
27-
28-
- name: Verify codegen output is up to date
29-
run: |
30-
if ! git diff --exit-code -- src/graphql/__generated__; then
31-
echo "::error::Generated GraphQL types are stale. Run 'bun run codegen' and commit the result."
32-
exit 1
33-
fi
34-
3525
- name: TypeScript
3626
run: bunx tsc --noEmit
3727

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ bun run codegen ./schema.graphql
160160
bun run codegen http://localhost:4000/api/graphql
161161
```
162162

163-
Output: `src/graphql/__generated__/types.ts` — committed to the repo. CI fails any
164-
PR where the generated output is stale (you forgot to commit after editing a
165-
`.graphql` file).
163+
Output: `src/graphql/__generated__/types.ts` — committed to the repo. CI
164+
doesn't run codegen (no schema in CI), so remember to regenerate and commit
165+
after editing a `.graphql` file.
166166

167167
Example of using a generated hook:
168168

@@ -261,7 +261,7 @@ sandboxed Play Services to install or run.
261261
## CI
262262

263263
`.github/workflows/ci.yml` runs on every PR and push to `main`:
264-
- **`js` job**: `bun install`codegen → stale-output check → `tsc --noEmit` → biome (lint + format) → jest.
264+
- **`js` job**: `bun install``tsc --noEmit` → biome (lint + format) → jest.
265265
- **`android` job**: JDK 17 + Gradle → `./gradlew assembleDebug`.
266266

267267
Both run in parallel.

0 commit comments

Comments
 (0)