-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed test run hang if an error occurs when trying to send test resul…
…ts to the server Pretty print requests and responses for easier troubleshooting Added integration tests disable warning NETSDK1138: The target framework 'netcoreapp2.1' is out of support and will not receive security updates in the future.
- Loading branch information
Showing
19 changed files
with
600 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,10 +44,10 @@ jobs: | |
echo SEM_VERSION=${{ env.SEM_VERSION }} | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4.1.0 | ||
|
||
- name: Setup .NET Core 2.1 | ||
uses: actions/setup-dotnet@v1 | ||
uses: actions/setup-dotnet@v3.2.0 | ||
with: | ||
dotnet-version: 2.1 | ||
|
||
|
@@ -63,23 +63,19 @@ jobs: | |
copy ".\src\AzurePipelines.TestLogger\bin\${{ matrix.Configuration }}\netstandard1.5\*.dll" .\src\AzurePipelines.TestLogger\contentFiles\any\any | ||
- name: Pack | ||
run: dotnet pack .\src\AzurePipelines.TestLogger\AzurePipelines.TestLogger.csproj --configuration ${{ matrix.Configuration }} -p:NuspecProperties="Version=${{ env.SEM_VERSION }}" --no-restore --no-build --output:.\build -p:NuspecFile=AzurePipelines.TestLogger.nuspec | ||
run: dotnet pack .\src\AzurePipelines.TestLogger\AzurePipelines.TestLogger.csproj --configuration ${{ matrix.Configuration }} -p:NuspecProperties="Version=${{ env.SEM_VERSION }}" --no-restore --no-build --output:.\build -p:NuspecFile=..\AzurePipelines.TestLogger\AzurePipelines.TestLogger.nuspec | ||
|
||
- name: Test | ||
run: dotnet test --no-build --no-restore --verbosity normal --configuration ${{ matrix.Configuration }} | ||
|
||
- name: Create zip | ||
run: | | ||
mkdir AzurePipelines.TestLogger.${{ env.SEM_VERSION }} | ||
copy ".\src\AzurePipelines.TestLogger\bin\${{ matrix.Configuration }}\netstandard1.5\*.*" .\AzurePipelines.TestLogger.${{ env.SEM_VERSION }} | ||
copy "~\.nuget\packages\semver\2.0.6\lib\netstandard1.1\*.*" .\AzurePipelines.TestLogger.${{ env.SEM_VERSION }} | ||
copy ".\LICENSE" .\AzurePipelines.TestLogger.${{ env.SEM_VERSION }} | ||
copy ".\README.md" .\AzurePipelines.TestLogger.${{ env.SEM_VERSION }} | ||
copy ".\ReleaseNotes.md" .\AzurePipelines.TestLogger.${{ env.SEM_VERSION }} | ||
tar -cf AzurePipelines.TestLogger.${{ env.SEM_VERSION }}.zip .\AzurePipelines.TestLogger.${{ env.SEM_VERSION }} | ||
- name: Create Zip | ||
uses: vimtor/[email protected] | ||
with: | ||
files: LICENSE README.md ReleaseNotes.md .\src\AzurePipelines.TestLogger\bin\${{ matrix.Configuration }}\netstandard1.5 | ||
dest: AzurePipelines.TestLogger.${{ env.SEM_VERSION }}.zip | ||
|
||
- name: Upload Build Artifact | ||
uses: actions/upload-artifact@v2.3.1 | ||
uses: actions/upload-artifact@v3.1.3 | ||
with: | ||
name: AzurePipelines.TestLogger ${{ env.SEM_VERSION }} ${{ matrix.Configuration }} | ||
path: AzurePipelines.TestLogger.${{ env.SEM_VERSION }}.zip | ||
|
@@ -95,15 +91,15 @@ jobs: | |
fail_on_unmatched_files: true | ||
files: | | ||
AzurePipelines.TestLogger.${{ env.SEM_VERSION }}.zip | ||
.\src\AzurePipelines.TestLogger\build\AzurePipelines.TestLogger.${{ env.SEM_VERSION }}.nupkg | ||
.\build\AzurePipelines.TestLogger.${{ env.SEM_VERSION }}.nupkg | ||
- name: Upload NuGet Package | ||
uses: actions/upload-artifact@v2.3.1 | ||
uses: actions/upload-artifact@v3.1.3 | ||
with: | ||
name: AzurePipelines.TestLogger ${{ env.SEM_VERSION }} ${{ matrix.Configuration }}.nupkg | ||
path: .\src\AzurePipelines.TestLogger\build\AzurePipelines.TestLogger.${{ env.SEM_VERSION }}.nupkg | ||
path: .\build\AzurePipelines.TestLogger.${{ env.SEM_VERSION }}.nupkg | ||
if-no-files-found: error | ||
|
||
- name: Publish NuGet Package | ||
if: ${{ matrix.Configuration == 'Release' && github.event_name != 'pull_request' }} | ||
run: dotnet nuget push .\src\AzurePipelines.TestLogger\build\AzurePipelines.TestLogger.${{ env.SEM_VERSION }}.nupkg --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json | ||
run: dotnet nuget push .\build\AzurePipelines.TestLogger.${{ env.SEM_VERSION }}.nupkg --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 26 additions & 26 deletions
52
src/AzurePipelines.TestLogger/AzurePipelines.TestLogger.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>netstandard1.5</TargetFramework> | ||
<Version>1.0.0</Version> | ||
<AssemblyVersion>1.0.0.0</AssemblyVersion> | ||
<FileVersion>1.0.0.0</FileVersion> | ||
</PropertyGroup> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>netstandard1.5</TargetFramework> | ||
<Version>1.0.0</Version> | ||
<AssemblyVersion>1.0.0.0</AssemblyVersion> | ||
<FileVersion>1.0.0.0</FileVersion> | ||
<NoPackageAnalysis>true</NoPackageAnalysis> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Remove="contentFiles\**" /> | ||
<EmbeddedResource Remove="contentFiles\**" /> | ||
<None Remove="contentFiles\**" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="15.0.0" /> | ||
<PackageReference Include="Semver" Version="2.0.6" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo"> | ||
<_Parameter1>AzurePipelines.TestLogger.Tests</_Parameter1> | ||
</AssemblyAttribute> | ||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo"> | ||
<_Parameter1>DynamicProxyGenAssembly2</_Parameter1> | ||
</AssemblyAttribute> | ||
</ItemGroup> | ||
</Project> | ||
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="15.0.0" /> | ||
<PackageReference Include="Semver" Version="2.0.6" GeneratePathProperty="true" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo"> | ||
<_Parameter1>AzurePipelines.TestLogger.Tests</_Parameter1> | ||
</AssemblyAttribute> | ||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo"> | ||
<_Parameter1>DynamicProxyGenAssembly2</_Parameter1> | ||
</AssemblyAttribute> | ||
</ItemGroup> | ||
<Target Name="CopyFileFromNuGetPackage" AfterTargets="Build"> | ||
<Copy SourceFiles="$(PkgSemver)\lib\netstandard1.1\Semver.dll" DestinationFolder="$(OutDir)" /> | ||
</Target> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.