-
Notifications
You must be signed in to change notification settings - Fork 11.6k
ci: add separate typecheck and lint workflows for companion #26961
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This adds a new companion-typecheck.yml workflow that runs TypeScript type checking for the companion app. This would have caught the missing useEffect import issue in PR #26931. Changes: - Add new companion-typecheck.yml workflow file - Update pr.yml to call the new workflow when companion files change - Add typecheck-companion to the required jobs list Co-Authored-By: [email protected] <[email protected]>
f538b7c to
00fae93
Compare
|
Manually run it here:- https://github.com/calcom/cal.com/actions/runs/21097724937/job/60677483402 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 4 files
|
|
||
| - name: Run lint | ||
| working-directory: companion | ||
| run: bun run lint:all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: the bun run lint:all command runs both Biome and ESLint. We kept ESLint because it enforces the React compiler linting rules.
Do you think this CI job will work as expected?
|
|
||
| - name: Type check | ||
| working-directory: companion | ||
| run: bun run typecheck |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we please use bun run typecheck:all command here?
dhairyashiil
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left some comments
What does this PR do?
add separate typecheck and lint workflows for companion. This would have caught the missing
useEffectimport issue in PR #26931 before it was merged.Background: PR #26931 was merged with
useEffectbeing used but not imported inAvailabilityDetailScreen.tsxandAvailabilityDetailScreen.ios.tsx. The companion CI only ran builds (expo exportandext:build) which don't catch TypeScript errors the same waytsc --noEmitdoes.