Skip to content

Commit c52bd40

Browse files
author
Nick Craver
committed
Take 32
1 parent 72eb732 commit c52bd40

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,11 @@ jobs:
4343
- name: .NET Build
4444
run: dotnet build Build.csproj -c Release /p:CI=true
4545
- 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
4747
env:
48-
EnableTestLogging: true
4948
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.;
5352
- name: .NET Lib Pack
5453
run: dotnet pack Build.csproj --no-build -c Release /p:PackageOutputPath=%CD%\.nupkgs /p:CI=true

tests/Directory.Build.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<GenerateDocumentationFile>false</GenerateDocumentationFile>
77
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
88
<IsPackable>false</IsPackable>
9+
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
910

1011
<DebugType>Full</DebugType>
1112
<DefineConstants Condition="'$(OS)' == 'Windows_NT'">$(DefineConstants);WINDOWS</DefineConstants>
@@ -14,6 +15,7 @@
1415
<ItemGroup>
1516
<ProjectReference Include="../../Dapper/Dapper.csproj" />
1617
<ProjectReference Include="../../Dapper.Contrib/Dapper.Contrib.csproj" />
18+
<PackageReference Include="GitHubActionsTestLogger" Version="1.1.0" />
1719
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.3.0" />
1820
<PackageReference Include="xunit" Version="2.4.1" />
1921
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />

0 commit comments

Comments
 (0)