Skip to content

Commit

Permalink
chore: Add coral_web client generation CI step (#890)
Browse files Browse the repository at this point in the history
* Add coral web test

* Generated client
  • Loading branch information
tianjing-li authored Jan 15, 2025
1 parent 802c232 commit d3d20fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/frontend_coral_web_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Start backend (for OpenAPI)
run: docker compose up backend -d
- name: Set up Node.js and install dependencies
uses: ./.github/actions/coral-web-install
- name: Check format
run: npm run format
- name: Check build
run: npm run build
- name: Generate client
run: npm run generate:client && npm run format:write
- name: Check generated client
run: git diff --exit-code ./src/cohere-client/generated || (echo "Generated client is outdated. Please regenerate and commit." && exit 1)
Original file line number Diff line number Diff line change
Expand Up @@ -1213,10 +1213,10 @@ export class DefaultService {
* Set environment variables for the deployment.
*
* Args:
* name (str): Deployment name.
* deployment_id (str): Deployment ID.
* session (DBSessionDep): Database session.
* env_vars (UpdateDeploymentEnv): Environment variables to set.
* valid_env_vars (str): Validated environment variables.
* ctx (Context): Context object.
* Returns:
* str: Empty string.
* @param data The data for the request.
Expand Down

0 comments on commit d3d20fc

Please sign in to comment.