-
Notifications
You must be signed in to change notification settings - Fork 420
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into generic-number-se…
…quence Conflicts resolved: - MoreLinq/MoreLinq.csproj
- Loading branch information
Showing
283 changed files
with
11,998 additions
and
4,999 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
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,117 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- '*.md' | ||
- '*.txt' | ||
- appveyor.yml | ||
branches: | ||
- master | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
DOTNET_CLI_TELEMETRY_OPTOUT: true | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | ||
SKIP_TEST_BUILD: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [windows-2022, ubuntu-22.04] | ||
|
||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '14' | ||
|
||
- name: Install ECLint | ||
run: npm install -g eclint | ||
|
||
- name: Delete EditorConfig file | ||
run: git rm .editorconfig | ||
|
||
- name: Check Final New-Line | ||
run: eclint check -n "**/*.{cs,tt,cmd,sh,md,txt,yml}" | ||
|
||
- name: Check Trailing Whitespace | ||
run: eclint check -w "**/*.{cs,tt,cmd,sh,md,txt,yml,json,sln,csproj,shfbproj}" | ||
|
||
- name: Restore Checkout | ||
run: git reset --hard | ||
|
||
- name: Setup .NET SDK per "global.json" | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
global-json-file: global.json | ||
|
||
- name: Setup .NET SDK 6.0 | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 6.0.x | ||
|
||
- name: .NET Information | ||
run: dotnet --info | ||
|
||
- name: Check Unit Tests Never Import "System.Linq" | ||
shell: pwsh | ||
run: | | ||
grep --extended-regexp '^[[:space:]]*using[[:space:]]+System\.Linq;' (dir -Recurse -File -Filter *Test.cs MoreLinq.Test) | ||
if ($LASTEXITCODE -eq 0) { | ||
throw 'Unit tests should not import System.Linq' | ||
} else { | ||
$LASTEXITCODE = 0 | ||
} | ||
- name: Build & Pack (Windows) | ||
shell: cmd | ||
if: runner.os == 'Windows' | ||
run: call pack.cmd | ||
|
||
- name: Build & Pack (Linux) | ||
if: runner.os != 'Windows' | ||
run: ./pack.sh | ||
|
||
- name: Check Uncommitted Changes | ||
shell: pwsh | ||
run: | | ||
$diff = git diff --ignore-all-space --exit-code 2>&1 | ||
$diff | % { if ($_ -is [string]) { $_ } else { [string]$_ } } | echo | ||
if ($LASTEXITCODE -ne 0) { | ||
throw "New code was generated during build that's not been committed." | ||
} | ||
- name: Validate NuGet Packages | ||
shell: pwsh | ||
run: | | ||
dir dist\*.nupkg | % { | ||
dotnet meziantou.validate-nuget-package --excluded-rules IconMustBeSet $_ | ||
if ($LASTEXITCODE) { | ||
throw "Package validation failed: $_" | ||
} | ||
} | ||
- name: Test (Windows) | ||
shell: cmd | ||
if: runner.os == 'Windows' | ||
run: call test.cmd | ||
|
||
- name: Test (Linux) | ||
if: runner.os != 'Windows' | ||
run: ./test.sh | ||
|
||
- name: Publish Coverage to Codecov | ||
uses: codecov/codecov-action@v3 |
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 |
---|---|---|
@@ -1,6 +1,11 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<LangVersion>11</LangVersion> | ||
<LangVersion>12</LangVersion> | ||
<Nullable>enable</Nullable> | ||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
<AnalysisLevel>8.0-all</AnalysisLevel> | ||
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild> | ||
<!-- Workaround for IDE0005 (Remove unnecessary usings/imports); see https://github.com/dotnet/roslyn/issues/41640 --> | ||
<NoWarn>EnableGenerateDocumentationFile</NoWarn> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<OutputType>exe</OutputType> | ||
<IsPackable>false</IsPackable> | ||
<PublishAot>true</PublishAot> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="MSTest.Engine" Version="1.0.0-alpha.24460.4" /> | ||
<PackageReference Include="MSTest.SourceGeneration" Version="1.0.0-alpha.24460.4" /> | ||
<PackageReference Include="Microsoft.CodeCoverage.MSBuild" Version="17.12.4" /> | ||
<PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage" Version="17.12.4" /> | ||
<PackageReference Include="Microsoft.Testing.Extensions.TrxReport" Version="1.4.0" /> | ||
<PackageReference Include="Microsoft.Testing.Platform.MSBuild" Version="1.4.0" /> | ||
<PackageReference Include="MSTest.TestFramework" Version="3.6.0" /> | ||
<PackageReference Include="MSTest.Analyzers" Version="3.6.0"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\MoreLinq\MoreLinq.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Using Include="Microsoft.VisualStudio.TestTools.UnitTesting" /> | ||
</ItemGroup> | ||
|
||
</Project> |
Oops, something went wrong.