From 3e0ad372564e67d4711dbd5730d4f0b4c1e01886 Mon Sep 17 00:00:00 2001 From: Pranshi Date: Fri, 22 Mar 2024 22:27:05 +0530 Subject: [PATCH] wip: github ci pipeline --- .github/workflows/ci.yml | 2 +- connector_config_emulator.json | 2 +- script/app.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5c55793..8932c14 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Start Azure Cosmos DB emulator - run: docker run --detach --publish 8080:8081 --publish 10250-10255:10250-10255 mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:latest + run: docker run --detach --publish 8085:8081 --publish 10250-10255:10250-10255 mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:latest - name: Setup database # working-directory: script run: sleep 100 && cd cosmos/script && npm install --save @azure/cosmos && node app.js diff --git a/connector_config_emulator.json b/connector_config_emulator.json index 1b7bdd2..03c5eb9 100644 --- a/connector_config_emulator.json +++ b/connector_config_emulator.json @@ -1,6 +1,6 @@ { "azure_cosmos_key": "C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==", - "azure_cosmos_db_endpoint": "https://localhost:8080/", + "azure_cosmos_db_endpoint": "https://localhost:8085/", "azure_cosmos_db_name": "ConnectorTest", "azure_cosmos_no_of_rows_to_fetch": 100 } diff --git a/script/app.js b/script/app.js index 033c34c..6de1e1c 100644 --- a/script/app.js +++ b/script/app.js @@ -1,7 +1,7 @@ import { CosmosClient } from '@azure/cosmos' const cosmosClient = new CosmosClient({ - endpoint: 'https://localhost:8080/', + endpoint: 'https://localhost:8085/', key: 'C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==' })