1
- name : Build_And_Test
1
+ name : Build_And_UnitTest
2
2
3
3
on :
4
4
push :
@@ -39,25 +39,31 @@ jobs:
39
39
40
40
- name : Build with dotnet
41
41
run : |
42
- dotnet build src/Dtmcli/Dtmcli.csproj
42
+ ls
43
+ dotnet build src/Dtmcli/Dtmcli.csproj
44
+ dotnet build src/Dtmgrpc/Dtmgrpc.csproj
43
45
44
46
- name : Run tests on netcoreapp3.1
45
47
run : |
46
- dotnet test --framework=netcoreapp3.1 src/Dtmcli.Tests/Dtmcli.Tests.csproj
48
+ dotnet test --framework=netcoreapp3.1 tests/Dtmcli.Tests/Dtmcli.Tests.csproj
49
+ dotnet test --framework=netcoreapp3.1 tests/Dtmgrpc.Tests/Dtmgrpc.Tests.csproj
47
50
48
51
- name : Run tests on net5.0
49
52
run : |
50
- dotnet test --framework=net5.0 src/Dtmcli.Tests/Dtmcli.Tests.csproj
53
+ dotnet test --framework=net5.0 tests/Dtmcli.Tests/Dtmcli.Tests.csproj
54
+ dotnet test --framework=net5.0 tests/Dtmgrpc.Tests/Dtmgrpc.Tests.csproj
51
55
52
56
- name : Run tests on net6.0
53
57
run : |
54
- dotnet test --framework=net6.0 src/Dtmcli.Tests/Dtmcli.Tests.csproj --collect:"XPlat Code Coverage"
58
+ dotnet test --framework=net6.0 tests/Dtmcli.Tests/Dtmcli.Tests.csproj --collect:"XPlat Code Coverage"
59
+ dotnet test --framework=net6.0 tests/Dtmgrpc.Tests/Dtmgrpc.Tests.csproj --collect:"XPlat Code Coverage"
55
60
56
61
- name : Prepare Codecov
57
62
run : |
58
63
mkdir ${{ github.workspace }}/coverage/
59
64
60
- cp ${{ github.workspace }}/src/Dtmcli.Tests/TestResults/*/coverage.cobertura.xml ${{ github.workspace }}/coverage/
65
+ cp ${{ github.workspace }}/tests/Dtmcli.Tests/TestResults/*/coverage.cobertura.xml ${{ github.workspace }}/coverage/cli.xml
66
+ cp ${{ github.workspace }}/tests/Dtmgrpc.Tests/TestResults/*/coverage.cobertura.xml ${{ github.workspace }}/coverage/grpc.xml
61
67
62
68
ls ${{ github.workspace }}/coverage/
63
69
67
73
with :
68
74
token : ${{ secrets.CODECOV_TOKEN }}
69
75
fail_ci_if_error : true
70
- files : ${{ github.workspace }}/coverage/coverage.cobertura .xml
71
- name : codecov-umbrella
76
+ files : ${{ github.workspace }}/coverage/cli.xml,${{ github.workspace }}/coverage/grpc .xml
77
+ name : codecov-dtm-client-csharp
72
78
verbose : true
0 commit comments