Skip to content

Commit d3d20fc

Browse files
authored
chore: Add coral_web client generation CI step (#890)
* Add coral web test * Generated client
1 parent 802c232 commit d3d20fc

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/frontend_coral_web_tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,15 @@ jobs:
1818
uses: actions/checkout@v3
1919
with:
2020
fetch-depth: 2
21+
- name: Start backend (for OpenAPI)
22+
run: docker compose up backend -d
2123
- name: Set up Node.js and install dependencies
2224
uses: ./.github/actions/coral-web-install
2325
- name: Check format
2426
run: npm run format
2527
- name: Check build
2628
run: npm run build
29+
- name: Generate client
30+
run: npm run generate:client && npm run format:write
31+
- name: Check generated client
32+
run: git diff --exit-code ./src/cohere-client/generated || (echo "Generated client is outdated. Please regenerate and commit." && exit 1)

src/interfaces/coral_web/src/cohere-client/generated/services.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,10 +1213,10 @@ export class DefaultService {
12131213
* Set environment variables for the deployment.
12141214
*
12151215
* Args:
1216-
* name (str): Deployment name.
1216+
* deployment_id (str): Deployment ID.
1217+
* session (DBSessionDep): Database session.
12171218
* env_vars (UpdateDeploymentEnv): Environment variables to set.
12181219
* valid_env_vars (str): Validated environment variables.
1219-
* ctx (Context): Context object.
12201220
* Returns:
12211221
* str: Empty string.
12221222
* @param data The data for the request.

0 commit comments

Comments
 (0)