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

Close #605: Disable type check for test, start, build commands in CI #606

Merged
merged 16 commits into from
Jul 20, 2021

Conversation

cangarugula
Copy link
Contributor

@cangarugula cangarugula commented Jul 14, 2021

Typechecks are run every time start, build, and test are run within the CI environment. If it's a CI environment, we should disable typecheck. This will improve performance of each command.

Because typecheck is enabled and performed during the local development start, build, and test runs, there is no need for the CI to rerun the check with every command in the CI pipeline. Typechecking should be its own step and done only once over the project within the CI environment.

modular typecheck runs tsc over the project and should be used explicitly to typecheck the project as part of the SDLC process.

Addressing #605

@changeset-bot
Copy link

changeset-bot bot commented Jul 14, 2021

🦋 Changeset detected

Latest commit: 812156d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
modular-scripts Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cangarugula
Copy link
Contributor Author

cangarugula commented Jul 15, 2021

Passing:
Screen Shot 2021-07-15 at 3 24 22 PM

Silent:

Screen Shot 2021-07-15 at 3 24 42 PM

For CI:

Screen Shot 2021-07-15 at 2 37 48 PM

For Non-CI
Screen Shot 2021-07-15 at 2 37 24 PM

Copy link
Contributor

@LukeSheard LukeSheard left a comment

Choose a reason for hiding this comment

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

See inline comments - I think a bit more abstraction around typescript configuration generation would be good. Couple of comment expansions would be useful too.


program
.command('typecheck')
.option(
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the use case for this? I would avoid adding any unnecessary APIs to this until we've got a better idea of when we'll need them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added this as a way to silence error messages and provide a green/red light on typechecking. I'm impartial so I will remove for simplicity's sake.

@cangarugula cangarugula merged commit 21efc22 into main Jul 20, 2021
@cangarugula cangarugula deleted the feature/modular-typecheck branch July 20, 2021 12:17
@LukeSheard LukeSheard linked an issue Jul 20, 2021 that may be closed by this pull request
@LukeSheard LukeSheard changed the title Disable type check for test, start, build commands in CI Close #605: Disable type check for test, start, build commands in CI Jul 20, 2021
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.

Disable typechecking in CI
2 participants