Skip to content

Commit

Permalink
fix the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
codingkarthik committed Apr 3, 2024
1 parent 286d084 commit 84b8472
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ jobs:
run: |
cd cosmos
npm install --save @azure/cosmos
npm i -g rimraf && npm run build
npm run build
- name: Generate the connector configuration
run: |
./dist/cli/index.js update
- name: Start connector
run: |
Expand Down
8 changes: 4 additions & 4 deletions script/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@ const cosmosClient = new CosmosClient({
key: 'C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw=='
})

process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0
// process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0

const { database } = await cosmosClient.databases.createIfNotExists({
id: 'ConnectorTest',
throughput: 400
})

const { container } = await database.containers.createIfNotExists({
id: 'NobelLaureates',
partitionKey: {
paths: [
'/year'
]
},
indexingPolicy: {
indexingPolicy: {
automatic: true,
indexingMode: "consistent",
includedPaths: [
Expand Down Expand Up @@ -85,4 +85,4 @@ for (const prize of prizes_data) {
container.items.upsert(prize)
i++;
}
console.log(i)
console.log(i)

0 comments on commit 84b8472

Please sign in to comment.