Skip to content
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

Improves reported type errors on CI #7813

Merged
merged 107 commits into from
Mar 28, 2023
Merged

Improves reported type errors on CI #7813

merged 107 commits into from
Mar 28, 2023

Conversation

zomars
Copy link
Member

@zomars zomars commented Mar 18, 2023

What does this PR do?

  • Adds new command to run type checks on CI
  • Adds reporter so errors are displayed as Github Comments in the Files tab.

Type of change

  • Chore (refactoring code, technical debt, workflow improvements)

How should this be tested?

  • yarn type-check:ci

Copy link
Member Author

@zomars zomars left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ready for review

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This allows GH to report type errors directly in files:

image

@@ -88,6 +89,7 @@
"lint-staged": "^12.5.0",
"prettier": "^2.8.4",
"ts-jest": "^28.0.8",
"tsc-absolute": "^1.0.0",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is needed in since tsc doesn't report absolute paths in a monorepo.

@zomars zomars marked this pull request as ready for review March 18, 2023 00:28
@zomars zomars requested a review from a team March 18, 2023 00:28
@zomars zomars requested review from a team March 18, 2023 00:28
@github-actions
Copy link
Contributor

📦 Next.js Bundle Analysis

This analysis was generated by the next.js bundle analysis action 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 210.79 KB (🟡 +1 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

@zomars zomars merged commit cee905b into calcom:main Mar 28, 2023
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.

6 participants