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

SDK typechecks in CI #577

Closed
wants to merge 15 commits into from
Closed

SDK typechecks in CI #577

wants to merge 15 commits into from

Conversation

myandrienko
Copy link

@myandrienko myandrienko commented May 16, 2024

To prevent accidentally introducing a breaking change to the OpenAPI spec, we can run type checks on our JS clients. If types break in the client, it signals a breaking change in the API. That's not necessarily bad, but something to be aware of.

Here's how it works:

  1. We generate TypeScript types from the spec in PR
  2. We checkout the JS SDK and replace types with the new ones
  3. We try to build the JS SDK

Note how "SDK Typecheck" check is red in this PR. That's because there's been a lot of breaking changes in the spec since we last bumped it in the SDK. After merging GetStream/stream-video-js#1343 this check will be green (as proven by a test run).

Revert changes to openapi/video-openapi-clientside.yaml before merging!

@myandrienko myandrienko changed the title experiment: SDK typechecks in CI SDK typechecks in CI May 16, 2024
@myandrienko myandrienko marked this pull request as ready for review May 16, 2024 16:26
@myandrienko
Copy link
Author

myandrienko commented May 17, 2024

As discussed with @tbarbugli, I'll try moving this check closer to the source of truth - GetStream/chat in this instance.

@myandrienko
Copy link
Author

Superseded by https://github.com/GetStream/chat/pull/6513

@guerinoni guerinoni deleted the sdk-typecheck-ci branch July 15, 2024 12:42
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.

3 participants