-
Notifications
You must be signed in to change notification settings - Fork 3.2k
42 lines (33 loc) · 1.01 KB
/
TestCosmos.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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 360
- 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/*