Skip to content

Commit

Permalink
use windows build agent for cosmosdb emulator
Browse files Browse the repository at this point in the history
  • Loading branch information
timbussmann committed Nov 30, 2024
1 parent ca78a50 commit 2e81c7a
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 2e81c7a

Please sign in to comment.