Skip to content

Commit 377159b

Browse files
committed
adding cosmos db emulator workflow
1 parent 9ae2c60 commit 377159b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: .NET test Cosmos extension with Cosmos DB Emulator
2+
on:
3+
workflow_dispatch:
4+
jobs:
5+
unit_tests:
6+
name: Test Cosmos extension with Cosmos DB Emulator
7+
runs-on: windows-latest
8+
steps:
9+
- name: Checkout (GitHub)
10+
uses: actions/checkout@v4
11+
- name: Start Azure Cosmos DB emulator
12+
run: |
13+
Write-Host "Launching Cosmos DB Emulator"
14+
Import-Module "$env:ProgramFiles\Azure Cosmos DB Emulator\PSModules\Microsoft.Azure.CosmosDB.Emulator"
15+
Start-CosmosDbEmulator
16+
- name: Run .NET tests
17+
run: dotnet test -graphBuild:True .\Extensions\Cosmos\Cosmos.DataTransfer.CosmosExtension.UnitTests\

0 commit comments

Comments
 (0)