Skip to content

Commit ba56950

Browse files
Create ci.yml
1 parent 90d8ac3 commit ba56950

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: .NET test with Cosmos DB Emulator
2+
on:
3+
workflow_dispatch:
4+
jobs:
5+
unit_tests:
6+
name: Run .NET unit tests
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

0 commit comments

Comments
 (0)