-
Notifications
You must be signed in to change notification settings - Fork 3.1k
80 lines (62 loc) · 2.07 KB
/
Test.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Test
on:
pull_request:
branches:
- main
- feature/*
- release/*
permissions: {}
jobs:
cosmos:
name: Azure Cosmos DB Emulator
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@v2
- 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@v3
if: always()
with:
name: test-results-cosmos
path: artifacts/log/Debug/*
mssql:
name: SQL Server on Linux
runs-on: ubuntu-latest
services:
mssql:
image: mcr.microsoft.com/mssql/server
env:
SA_PASSWORD: Password12!
ACCEPT_EULA: Y
ports:
- 1433:1433
env:
Test__SqlServer__DefaultConnection: Data Source=(local)\MSSQLSERVER;Initial Catalog=master;User ID=sa;Password=Password12!;Connect Timeout=60;ConnectRetryCount=0
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Restore
run: ./restore.sh
- name: Build
run: ./build.sh /p:Projects=${{ github.workspace }}/test/EFCore.SqlServer.FunctionalTests/EFCore.SqlServer.FunctionalTests.csproj
- name: Test
run: ./test.sh /p:Projects=${{ github.workspace }}/test/EFCore.SqlServer.FunctionalTests/EFCore.SqlServer.FunctionalTests.csproj
- name: Publish Test Results
uses: actions/upload-artifact@v3
if: always()
with:
name: test-results-mssql
path: artifacts/log/Debug/*