-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use windows build agent for cosmosdb emulator
- Loading branch information
1 parent
ca78a50
commit 2e81c7a
Showing
1 changed file
with
17 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,11 +8,11 @@ on: | |
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -24,15 +24,20 @@ jobs: | |
run: dotnet restore | ||
- name: Build | ||
run: dotnet build --no-restore | ||
- name: Azure login | ||
uses: azure/[email protected] | ||
with: | ||
creds: ${{ secrets.AZURE_CREDENTIALS }} | ||
- name: Setup Cosmos DB | ||
uses: Particular/[email protected] | ||
with: | ||
connection-string-name: Annoy_O_Bot_ComsmosConnectionString | ||
azure-credentials: ${{ secrets.AZURE_CREDENTIALS }} | ||
tag: Annoy_O_Bot_Tests | ||
# - name: Azure login | ||
# uses: azure/[email protected] | ||
# with: | ||
# creds: ${{ secrets.AZURE_CREDENTIALS }} | ||
# - name: Setup Cosmos DB | ||
# uses: Particular/[email protected] | ||
# with: | ||
# connection-string-name: Annoy_O_Bot_ComsmosConnectionString | ||
# azure-credentials: ${{ secrets.AZURE_CREDENTIALS }} | ||
# tag: Annoy_O_Bot_Tests | ||
- 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: Test | ||
run: dotnet test --no-build --verbosity normal |