File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -43,12 +43,11 @@ jobs:
43
43
- name : .NET Build
44
44
run : dotnet build Build.csproj -c Release /p:CI=true
45
45
- name : .NET Test
46
- run : dotnet test Build.csproj -c Release --no-build /p:CI=true
46
+ run : dotnet test Build.csproj -c Release --logger GitHubActions /p:CI=true
47
47
env :
48
- EnableTestLogging : true
49
48
MySQLConnectionString : server=localhost;Port=${{ job.services.mysql.ports[3306] }};Uid=root;Pwd=root;Database=test;Allow User Variables=true
50
- OLEDBConnectionString : Provider=SQLOLEDB;Server=localhost; ${{ job.services.sqlserver.ports[1433] }};Database=tempdb;User Id=sa;Password=Password.;
51
- PostgreSqlConnectionString : Server=localhost ;Port=${{ job.services.postgres.ports[5432] }};Database=test;User Id=postgres;Password=postgres;
52
- SQLServerConnectionString : Server=localhost; ${{ job.services.sqlserver.ports[1433] }};Database=tempdb;User Id=sa;Password=Password.;
49
+ OLEDBConnectionString : Provider=SQLOLEDB;Server=tcp: localhost, ${{ job.services.sqlserver.ports[1433] }};Database=tempdb;User Id=sa;Password=Password.;
50
+ PostgreSqlConnectionString : Server=. ;Port=${{ job.services.postgres.ports[5432] }};Database=test;User Id=postgres;Password=postgres;
51
+ SQLServerConnectionString : Server=tcp: localhost, ${{ job.services.sqlserver.ports[1433] }};Database=tempdb;User Id=sa;Password=Password.;
53
52
- name : .NET Lib Pack
54
53
run : dotnet pack Build.csproj --no-build -c Release /p:PackageOutputPath=%CD%\.nupkgs /p:CI=true
Original file line number Diff line number Diff line change 6
6
<GenerateDocumentationFile >false</GenerateDocumentationFile >
7
7
<TreatWarningsAsErrors >false</TreatWarningsAsErrors >
8
8
<IsPackable >false</IsPackable >
9
+ <CopyLocalLockFileAssemblies >true</CopyLocalLockFileAssemblies >
9
10
10
11
<DebugType >Full</DebugType >
11
12
<DefineConstants Condition =" '$(OS)' == 'Windows_NT'" >$(DefineConstants);WINDOWS</DefineConstants >
14
15
<ItemGroup >
15
16
<ProjectReference Include =" ../../Dapper/Dapper.csproj" />
16
17
<ProjectReference Include =" ../../Dapper.Contrib/Dapper.Contrib.csproj" />
18
+ <PackageReference Include =" GitHubActionsTestLogger" Version =" 1.1.0" />
17
19
<PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 16.3.0" />
18
20
<PackageReference Include =" xunit" Version =" 2.4.1" />
19
21
<PackageReference Include =" xunit.runner.visualstudio" Version =" 2.4.1" />
You can’t perform that action at this time.
0 commit comments