Skip to content

Improves reported type errors on CI#7813

Merged
zomars merged 107 commits intocalcom:mainfrom
zomars:main
Mar 28, 2023
Merged

Improves reported type errors on CI#7813
zomars merged 107 commits intocalcom:mainfrom
zomars:main

Conversation

@zomars
Copy link
Copy Markdown
Contributor

@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
Copy Markdown
Contributor 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
Copy Markdown
Contributor 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

"lint-staged": "^12.5.0",
"prettier": "^2.8.4",
"ts-jest": "^28.0.8",
"tsc-absolute": "^1.0.0",
Copy link
Copy Markdown
Contributor 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 a review from hariombalhara as a code owner March 18, 2023 00:28
@zomars zomars requested review from a team March 18, 2023 00:28
@github-actions
Copy link
Copy Markdown
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