Use PRAGMA defer_foreign_keys
instead of PRAGMA foreign_keys
when migrating
#12967
Workflow file for this run
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: Test Cosmos | |
on: | |
pull_request: | |
branches: | |
- main | |
- feature/* | |
- release/* | |
permissions: {} | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Start Cosmos Emulator | |
run: | | |
Import-Module "$env:ProgramFiles\Azure Cosmos DB Emulator\PSModules\Microsoft.Azure.CosmosDB.Emulator" | |
Start-CosmosDbEmulator -Timeout 540 -NoUI -NoTelemetry -NoFirewall -EnablePreview | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Restore | |
run: restore.cmd | |
shell: cmd | |
- name: Build | |
run: build.cmd /p:Projects=${{ github.workspace }}\test\EFCore.Cosmos.FunctionalTests\EFCore.Cosmos.FunctionalTests.csproj | |
shell: cmd | |
- name: Test on Cosmos | |
run: test.cmd /p:Projects=${{ github.workspace }}\test\EFCore.Cosmos.FunctionalTests\EFCore.Cosmos.FunctionalTests.csproj | |
shell: cmd | |
- name: Publish Test Results | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: test-results | |
path: artifacts/log/Debug/* |