reading env in workflow #1854
Annotations
7 errors and 21 warnings
tests/Admin.test.ts:
server/src/ai/ai.functions.ts#L21
Error: The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }).
❯ new OpenAI ../node_modules/openai/src/index.ts:122:13
❯ src/ai/ai.functions.ts:21:16
❯ src/ai/ai.router.ts:2:31
|
tests/Auth.test.ts:
server/src/ai/ai.functions.ts#L21
Error: The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }).
❯ new OpenAI ../node_modules/openai/src/index.ts:122:13
❯ src/ai/ai.functions.ts:21:16
❯ src/ai/ai.router.ts:2:31
|
tests/Course.test.ts:
server/src/ai/ai.functions.ts#L21
Error: The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }).
❯ new OpenAI ../node_modules/openai/src/index.ts:122:13
❯ src/ai/ai.functions.ts:21:16
❯ src/ai/ai.router.ts:2:31
|
tests/Profile.test.ts:
server/src/ai/ai.functions.ts#L21
Error: The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }).
❯ new OpenAI ../node_modules/openai/src/index.ts:122:13
❯ src/ai/ai.functions.ts:21:16
❯ src/ai/ai.router.ts:2:31
|
tests/Review.test.ts:
server/src/ai/ai.functions.ts#L21
Error: The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }).
❯ new OpenAI ../node_modules/openai/src/index.ts:122:13
❯ src/ai/ai.functions.ts:21:16
❯ src/ai/ai.router.ts:2:31
|
tests/Search.test.ts:
server/src/ai/ai.functions.ts#L21
Error: The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }).
❯ new OpenAI ../node_modules/openai/src/index.ts:122:13
❯ src/ai/ai.functions.ts:21:16
❯ src/ai/ai.router.ts:2:31
|
build
Process completed with exit code 1.
|
build
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
build:
client/src/modules/Profile/Component/Profile.tsx#L84
'reviews' is already declared in the upper scope on line 24 column 10
|
build:
client/src/modules/Profile/Component/Profile.tsx#L85
'pendingReviews' is already declared in the upper scope on line 25 column 10
|
build:
client/src/modules/Profile/Component/Profile.tsx#L88
'pastReviews' is already declared in the upper scope on line 26 column 10
|
build:
client/src/modules/Profile/Component/Profile.tsx#L103
'pendingReviews' is already declared in the upper scope on line 25 column 10
|
build:
client/src/modules/Profile/Component/Profile.tsx#L106
'pastReviews' is already declared in the upper scope on line 26 column 10
|
build:
client/src/modules/Course/Components/Course.tsx#L29
'PageStatus' is already declared in the upper scope on line 29 column 6
|
build:
client/src/modules/Course/Components/Course.tsx#L29
'PageStatus' is defined but never used
|
build:
client/src/modules/Course/Components/Course.tsx#L30
'Loading' is already declared in the upper scope on line 12 column 8
|
build:
client/src/modules/Course/Components/Course.tsx#L30
'Loading' is defined but never used
|
build:
client/src/modules/Course/Components/Course.tsx#L31
'Success' is defined but never used
|
build:
client/src/auth/auth_utils.ts#L68
'redirectFrom' is already declared in the upper scope on line 48 column 39
|
build:
client/src/modules/Admin/Components/Admin.tsx#L30
'setAddSemester' is assigned a value but never used
|
build:
client/src/modules/Admin/Components/Admin.tsx#L30
'setAddSemester' is assigned a value but never used
|
build:
client/src/modules/Admin/Components/Admin.tsx#L264
'doubleClick' is already declared in the upper scope on line 25 column 10
|
build:
client/src/modules/Admin/Components/Admin.tsx#L296
'token' is already declared in the upper scope on line 33 column 23
|
build:
client/src/modules/Admin/Components/AdminReview.tsx#L39
'review' is already declared in the upper scope on line 21 column 24
|
build:
client/src/modules/Admin/Components/ManageAdminModal.tsx#L29
'admins' is already declared in the upper scope on line 16 column 12
|
build:
client/src/modules/Course/Components/Course.tsx#L29
'PageStatus' is already declared in the upper scope on line 29 column 6
|
build:
client/src/modules/Course/Components/Course.tsx#L29
'PageStatus' is defined but never used
|
build:
client/src/modules/Course/Components/Course.tsx#L30
'Loading' is already declared in the upper scope on line 12 column 8
|