Skip to content

Commit

Permalink
Merge pull request #85 from upstash/fix-ci-test-paths
Browse files Browse the repository at this point in the history
Fix test file paths in the CI
  • Loading branch information
CahidArda authored Oct 9, 2024
2 parents cf26b3a + 368d650 commit cb61a0b
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ jobs:
working-directory: examples/nextjs/chat-to-website

- name: Test
run: bun test examples/nextjs/chat-to-website/ci.test.ts
run: bun test ci.test.ts
working-directory: examples/nextjs/chat-to-website

nextjs-server-actions:
Expand Down Expand Up @@ -363,7 +363,7 @@ jobs:
working-directory: examples/nextjs/vercel-ai-sdk

- name: Test
run: bun test examples/nextjs/vercel-ai-sdk/ci.test.ts
run: bun test ci.test.ts
working-directory: examples/nextjs/vercel-ai-sdk

release:
Expand Down
1 change: 1 addition & 0 deletions examples/nextjs/chat-to-website/ci.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ test(

const result = await collectStream(chatStream);
console.log("streamed response");
console.log(result);

const lowerCaseResult = result.toLowerCase();
expect(lowerCaseResult.includes("foo")).toBeTrue();
Expand Down
3 changes: 2 additions & 1 deletion examples/nextjs/chat-to-website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
},
"dependencies": {
"@nextui-org/react": "^2.4.6",
"@upstash/rag-chat": "^1.6.4",
"@upstash/rag-chat": "latest",
"@upstash/redis": "^1.34.0",
"@upstash/vector": "^1.1.7",
"ai": "^3.3.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/nextjs/server-actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"@upstash/rag-chat": "^1.6.4",
"@upstash/rag-chat": "latest",
"next": "14.2.11",
"react": "^18",
"react-dom": "^18"
Expand Down
1 change: 1 addition & 0 deletions examples/nextjs/vercel-ai-sdk/ci.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ test(

const result = await collectStream(chatStream);
console.log("streamed response");
console.log(result);

const lowerCaseResult = result.toLowerCase();

Expand Down
4 changes: 3 additions & 1 deletion examples/nextjs/vercel-ai-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"lint": "next lint"
},
"dependencies": {
"@upstash/rag-chat": "1.6.4",
"@upstash/rag-chat": "latest",
"@upstash/redis": "^1.34.2",
"@upstash/vector": "^1.1.7",
"ai": "^3.4.8",
"next": "14.2.11",
"react": "^18",
Expand Down

0 comments on commit cb61a0b

Please sign in to comment.