.NET test with Cosmos DB Emulator #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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==" |