Skip to content

Commit

Permalink
Update frontend CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcampagnolitg committed Oct 23, 2024
1 parent a910e8e commit 2391e63
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ jobs:
working-directory: ./frontend
run: npm ci

- name: Install Chrome
uses: browser-actions/setup-chrome@latest

- name: Run tests (frontend)
working-directory: ./frontend
run: npm run test:ci
env:
CHROME_BIN: /usr/bin/google-chrome-stable
1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"build": "npm run write:env -s && ng build --base-href=/ui/",
"watch": "ng build --watch --configuration development",
"test": "ng test",
"test:ci": "ng test --no-watch --no-progress --browsers=ChromeHeadless",
"lint": "ng lint",
"lint:ci": "echo skipping",
"write:env": "ngx-scripts env npm_package_version SERVER_URL GCLOUD_PROJECT FIRESTORE_DATABASE AUTH"
Expand Down
2 changes: 1 addition & 1 deletion src/llm/models/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export class OpenAI extends BaseLLM {
stream: false,
});
const responseText = stream.choices[0].message.content;
let timeToFirstToken = Date.now();
const timeToFirstToken = Date.now();
const finishTime = Date.now();

const llmCall: LlmCall = await llmCallSave;
Expand Down

0 comments on commit 2391e63

Please sign in to comment.