Skip to content

.NET test with Cosmos DB Emulator #5

.NET test with Cosmos DB Emulator

.NET test with Cosmos DB Emulator #5

name: .NET test with Cosmos DB Emulator
on:
workflow_dispatch:
jobs:
unit_tests:
name: Run .NET unit tests
runs-on: windows-latest
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v4
- name: Start Azure Cosmos DB emulator
run: |
Write-Host "Launching Cosmos DB Emulator"
Import-Module "$env:ProgramFiles\Azure Cosmos DB Emulator\PSModules\Microsoft.Azure.CosmosDB.Emulator"
Start-CosmosDbEmulator
- name: Run .NET tests
run: dotnet test -graphBuild:True .\Extensions\Cosmos\Cosmos.DataTransfer.CosmosExtension.UnitTests\
env:
Cosmos_Endpoint: https://localhost:8081/"
Cosmos_Key: C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw=="