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

chore: Add coral_web client generation CI step #890

Merged
merged 4 commits into from
Jan 15, 2025
Merged

Conversation

tianjing-li
Copy link
Collaborator

@tianjing-li tianjing-li commented Jan 3, 2025

Blocked: waiting on Coral web fixes

AI Description

This pull request introduces several new steps to the workflow, enhancing the build process and ensuring the client is up-to-date.

  • A new step, Generate client, is added to the workflow, which runs the command npm run generate:client && npm run format:write. This step generates the client code, ensuring it is up-to-date.
  • Another step, Check generated client, is introduced to verify the generated client. It uses git diff --exit-code ./src/cohere-client/generated to compare the generated client with the expected version. If they differ, an error message is displayed, prompting regeneration and commitment.

@codecov-commenter
Copy link

codecov-commenter commented Jan 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.64%. Comparing base (802c232) to head (769cacd).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #890   +/-   ##
=======================================
  Coverage   76.64%   76.64%           
=======================================
  Files         259      259           
  Lines       10583    10583           
=======================================
  Hits         8111     8111           
  Misses       2472     2472           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@EugeneLightsOn EugeneLightsOn left a comment

Choose a reason for hiding this comment

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

It's a good idea, Thank you TJ

@tianjing-li tianjing-li changed the title chore: Add coral_web client generation CI step [Blocked by #831] chore: Add coral_web client generation CI step Jan 8, 2025
@tianjing-li tianjing-li changed the title [Blocked by #831] chore: Add coral_web client generation CI step chore: Add coral_web client generation CI step Jan 14, 2025
@tianjing-li tianjing-li merged commit d3d20fc into main Jan 15, 2025
7 of 8 checks passed
@tianjing-li tianjing-li deleted the coral-web-ci branch January 15, 2025 14:55
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