Skip to content

Remove CI checks in production #1578

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

Merged

Conversation

matthewbastien
Copy link
Member

There was a bunch of code that checks for process.env.CI === "1" (or variations of that). Consolidated all of these checks into a utility called IS_RUNNING_IN_CI that will get optimized out of production builds using esbuild's --define command line argument.

@matthewbastien matthewbastien merged commit 97a560f into swiftlang:main May 22, 2025
18 checks passed
@matthewbastien matthewbastien deleted the remove-ci-checks-from-production branch May 22, 2025 19:40
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.

4 participants