forked from open-telemetry/opentelemetry-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updating EOF updating EOF updating EOF updating proj file updating saved without BOM removing unused lines
- Loading branch information
Showing
23 changed files
with
232 additions
and
124 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: .NET Code Coverage | ||
name: Code Coverage | ||
|
||
on: | ||
push: | ||
|
@@ -31,15 +31,19 @@ jobs: | |
run: dotnet build --configuration Release --no-restore | ||
|
||
- name: dotnet test | ||
run: dotnet test --collect:"XPlat Code Coverage" --results-directory:"TestResults" --configuration Release --no-build -- RunConfiguration.DisableAppDomain=true | ||
run: dotnet test --collect:"Code Coverage" --results-directory:"TestResults" --configuration Release --no-build -- RunConfiguration.DisableAppDomain=true | ||
|
||
- name: Process code coverage | ||
run: .\build\process-codecoverage.ps1 | ||
shell: powershell | ||
|
||
- name: Install report tool | ||
run: dotnet tool install -g dotnet-reportgenerator-globaltool | ||
|
||
- name: Merging test results | ||
run: reportgenerator -reports:TestResults/**/*.xml -targetdir:TestResults -reporttypes:Cobertura | ||
|
||
- uses: codecov/[email protected].10 | ||
- uses: codecov/[email protected].12 | ||
with: | ||
file: TestResults/Cobertura.xml | ||
env_vars: OS | ||
|
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,4 +1,4 @@ | ||
name: .NET Linux | ||
name: Linux | ||
|
||
on: | ||
pull_request: | ||
|
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,4 +1,4 @@ | ||
name: .NET Windows | ||
name: Windows | ||
|
||
on: | ||
pull_request: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: dotnet format | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
paths: | ||
- '**.cs' | ||
- '.editorconfig' | ||
|
||
jobs: | ||
check-format: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup .NET Core 3.1 | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 3.1.x | ||
|
||
- name: Install format tool | ||
run: dotnet tool install -g dotnet-format | ||
|
||
- name: dotnet format | ||
run: dotnet-format --folder --check |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<Project> | ||
<Import Project=".\Common.props" /> | ||
|
||
<PropertyGroup> | ||
<IsPackable>false</IsPackable> | ||
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)/OpenTelemetryContrib.test.ruleset</CodeAnalysisRuleSet> | ||
|
||
<SignAssembly>true</SignAssembly> | ||
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)/debug.snk</AssemblyOriginatorKeyFile> | ||
<DefineConstants>$(DefineConstants);SIGNED</DefineConstants> | ||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
<NoWarn>$(NoWarn),1574,1591</NoWarn> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> | ||
<AdditionalFiles Include="$(MSBuildThisFileDirectory)/stylecop.json" /> | ||
</ItemGroup> | ||
|
||
<PropertyGroup Condition="$(MSBuildProjectName.Contains('.Tests'))"> | ||
<IsTestProject>true</IsTestProject> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Label="Package versions used in by test projects"> | ||
<!-- | ||
Please sort alphabetically. | ||
Refer to https://docs.microsoft.com/en-us/nuget/concepts/package-versioning for semver syntax. | ||
--> | ||
<BenchmarkDotNetPkgVer>[0.12.1,0.13)</BenchmarkDotNetPkgVer> | ||
<DotNetXUnitCliVer>[2.3.1,3.0)</DotNetXUnitCliVer> | ||
<MicrosoftExtensionsLoggingPkgVer>[5.0.0-preview.8.20407.11]</MicrosoftExtensionsLoggingPkgVer> | ||
<MicrosoftExtensionsLoggingConsolePkgVer>[5.0.0-preview.8.20407.11]</MicrosoftExtensionsLoggingConsolePkgVer> | ||
<MicrosoftNETTestSdkPkgVer>[16.7.1,17.0)</MicrosoftNETTestSdkPkgVer> | ||
<MoqPkgVer>[4.14.5,5.0)</MoqPkgVer> | ||
<XUnitRunnerVisualStudioPkgVer>[2.4.3,3.0)</XUnitRunnerVisualStudioPkgVer> | ||
<XUnitPkgVer>[2.4.1,3.0)</XUnitPkgVer> | ||
</PropertyGroup> | ||
|
||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<LangVersion>8.0</LangVersion> | ||
<SignAssembly>true</SignAssembly> | ||
<RepoRoot>$([System.IO.Directory]::GetParent($(MSBuildThisFileDirectory)).Parent.FullName)</RepoRoot> | ||
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)debug.snk</AssemblyOriginatorKeyFile> | ||
<DefineConstants>$(DefineConstants);SIGNED</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)'=='Debug'"> | ||
<DebugType>full</DebugType> | ||
<DebugSymbols>true</DebugSymbols> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)'=='Release'"> | ||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Label="Package versions used in this repository"> | ||
<!-- | ||
Please sort alphabetically. | ||
Refer to https://docs.microsoft.com/en-us/nuget/concepts/package-versioning for semver syntax. | ||
--> | ||
<MinVerPkgVer>[2.3.0,3.0)</MinVerPkgVer> | ||
<MicrosoftCodeAnalysisFxCopAnalyzersPkgVer>[3.3.0]</MicrosoftCodeAnalysisFxCopAnalyzersPkgVer> | ||
<MicrosoftCodeCoveragePkgVer>[16.7.1]</MicrosoftCodeCoveragePkgVer> | ||
<MicrosoftExtensionsHostingAbstractionsPkgVer>[2.1.0,5.0)</MicrosoftExtensionsHostingAbstractionsPkgVer> | ||
<MicrosoftNETFrameworkReferenceAssembliesPkgVer>[1.0.0,2.0)</MicrosoftNETFrameworkReferenceAssembliesPkgVer> | ||
<MicrosoftSourceLinkGitHubPkgVer>[1.0.0,2.0)</MicrosoftSourceLinkGitHubPkgVer> | ||
<OpenTelemetryPkgVer>[0.5.0-beta.2]</OpenTelemetryPkgVer> | ||
<StyleCopAnalyzersPkgVer>[1.1.118,2.0)</StyleCopAnalyzersPkgVer> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<AdditionalFiles Include="$(MSBuildThisFileDirectory)/stylecop.json" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="$(MicrosoftNETFrameworkReferenceAssembliesPkgVer)" PrivateAssets="All" /> | ||
<PackageReference Include="StyleCop.Analyzers" Version="$(StyleCopAnalyzersPkgVer)" Condition="'$(SkipAnalysis)'!='true'"> | ||
<PrivateAssets>All</PrivateAssets> | ||
</PackageReference> | ||
<PackageReference Include="Microsoft.CodeCoverage" Version="$(MicrosoftCodeCoveragePkgVer)" Condition="'$(Configuration)'=='Release'"/> | ||
<!--<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="$(MicrosoftCodeAnalysisFxCopAnalyzersPkgVer)" Condition="'$(SkipAnalysis)'!='true'"> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageReference>--> | ||
</ItemGroup> | ||
</Project> |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
$files = Get-ChildItem "TestResults" -Filter "*.coverage" -Recurse | ||
Write-Host $env:USERPROFILE | ||
foreach ($file in $files) | ||
{ | ||
$command = $env:USERPROFILE+ '\.nuget\packages\microsoft.codecoverage\16.7.1\build\netstandard1.0\CodeCoverage\CodeCoverage.exe analyze /output:' + $file.DirectoryName + '\' + $file.Name + '.xml '+ $file.FullName | ||
Write-Host $command | ||
Invoke-Expression $command | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"maxParallelThreads": 1, | ||
"parallelizeTestCollections": false | ||
} |
Oops, something went wrong.