From 393106c28a253d3dd96a0c01a31da701653fb758 Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Sat, 25 Sep 2021 00:31:01 +0700 Subject: [PATCH 1/4] SWEEP: Added tests for .NET 6.0 --- Directory.Build.targets | 20 +++--- TestTargetFramework.props | 3 +- azure-pipelines.yml | 80 ++++++++++++++++++++++- build/azure-templates/run-tests-on-os.yml | 7 ++ build/build.ps1 | 4 +- 5 files changed, 99 insertions(+), 15 deletions(-) diff --git a/Directory.Build.targets b/Directory.Build.targets index 0a9bad4116..186c3143b0 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -20,16 +20,16 @@ --> - - + + $(DefineConstants);FEATURE_ARGITERATOR $(DefineConstants);FEATURE_DICTIONARY_REMOVE_CONTINUEENUMERATION - - + + $(DefineConstants);NETSTANDARD $(DefineConstants);FEATURE_ARRAYEMPTY @@ -39,8 +39,8 @@ portable - - + + $(DefineConstants);FEATURE_CONDITIONALWEAKTABLE_ENUMERATOR $(DefineConstants);FEATURE_CONDITIONALWEAKTABLE_ADDORUPDATE @@ -48,15 +48,15 @@ - - + + $(DefineConstants);FEATURE_ICONFIGURATIONROOT_PROVIDERS - - + + $(DefineConstants);FEATURE_APPDOMAIN_BASEDIRECTORY $(DefineConstants);FEATURE_APPDOMAIN_GETASSEMBLIES diff --git a/TestTargetFramework.props b/TestTargetFramework.props index 10b3b4753d..88c4d5dcd3 100644 --- a/TestTargetFramework.props +++ b/TestTargetFramework.props @@ -30,11 +30,12 @@ net5.0 + - net5.0;netcoreapp3.1 + net6.0;net5.0;netcoreapp3.1 $(TargetFrameworks);net48;net461 diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 4d18c79582..16468f6c1d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -121,9 +121,10 @@ stages: displayName: 'Setup Default Variable Values' - task: UseDotNet@2 - displayName: 'Use .NET Core sdk 5.0.400' + displayName: 'Use .NET Core sdk 6.0.100-rc.1' inputs: - version: 5.0.400 + packageType: 'sdk' + version: '6.0.100-rc.1.21463.6' - pwsh: | Import-Module "$(BuildDirectory)/psake.psm1" @@ -233,6 +234,13 @@ stages: publishLocation: 'pipeline' condition: and(succeeded(), ne(variables['ArtifactFeedID'], '')) + - template: 'build/azure-templates/publish-test-binaries.yml' + parameters: + publishDirectory: $(PublishTempDirectory) + framework: 'net6.0' + binaryArtifactName: '$(BinaryArtifactName)' + testSettingsFilePath: '$(Build.ArtifactStagingDirectory)/$(TestSettingsFileName)' + - template: 'build/azure-templates/publish-test-binaries.yml' parameters: publishDirectory: $(PublishTempDirectory) @@ -318,6 +326,74 @@ stages: displayName: 'Test Stage:' jobs: + - job: Test_net6_0_x64 + condition: and(succeeded(), ne(variables['RunTests'], 'false')) + strategy: + matrix: + Windows: + osName: 'Windows' + imageName: 'windows-2019' + maximumParallelJobs: 8 + maximumAllowedFailures: 4 # Maximum allowed failures for a successful build + Linux: + osName: 'Linux' + imageName: 'ubuntu-latest' + maximumParallelJobs: 7 + maximumAllowedFailures: 4 # Maximum allowed failures for a successful build + macOS: + osName: 'macOS' + imageName: 'macOS-latest' + maximumParallelJobs: 7 + maximumAllowedFailures: 4 # Maximum allowed failures for a successful build + displayName: 'Test net6.0,x64 on' + pool: + vmImage: $(imageName) + steps: + - template: 'build/azure-templates/run-tests-on-os.yml' + parameters: + osName: $(osName) + framework: 'net6.0' + vsTestPlatform: 'x64' + testBinariesArtifactName: '$(TestBinariesArtifactName)' + nugetArtifactName: '$(NuGetArtifactName)' + testResultsArtifactName: '$(TestResultsArtifactName)' + maximumParallelJobs: $(maximumParallelJobs) + maximumAllowedFailures: $(maximumAllowedFailures) + + - job: Test_net6_0_x86 # Only run Nightly or if explicitly enabled with RunX86Tests + condition: and(succeeded(), ne(variables['RunTests'], 'false'), or(eq(variables['IsNightly'], 'true'), eq(variables['RunX86Tests'], 'true'))) + strategy: + matrix: + Windows: + osName: 'Windows' + imageName: 'windows-2019' + maximumParallelJobs: 8 + maximumAllowedFailures: 4 # Maximum allowed failures for a successful build + Linux: + osName: 'Linux' + imageName: 'ubuntu-latest' + maximumParallelJobs: 7 + maximumAllowedFailures: 4 # Maximum allowed failures for a successful build + macOS: + osName: 'macOS' + imageName: 'macOS-latest' + maximumParallelJobs: 7 + maximumAllowedFailures: 4 # Maximum allowed failures for a successful build + displayName: 'Test net6.0,x86 on' + pool: + vmImage: $(imageName) + steps: + - template: 'build/azure-templates/run-tests-on-os.yml' + parameters: + osName: $(osName) + framework: 'net6.0' + vsTestPlatform: 'x86' + testBinariesArtifactName: '$(TestBinariesArtifactName)' + nugetArtifactName: '$(NuGetArtifactName)' + testResultsArtifactName: '$(TestResultsArtifactName)' + maximumParallelJobs: $(maximumParallelJobs) + maximumAllowedFailures: $(maximumAllowedFailures) + - job: Test_net5_0_x64 condition: and(succeeded(), ne(variables['RunTests'], 'false')) strategy: diff --git a/build/azure-templates/run-tests-on-os.yml b/build/azure-templates/run-tests-on-os.yml index d578ab024c..2436432f99 100644 --- a/build/azure-templates/run-tests-on-os.yml +++ b/build/azure-templates/run-tests-on-os.yml @@ -83,6 +83,13 @@ steps: displayName: 'Use .NET sdk 5.0.400' inputs: version: 5.0.400 + condition: and(succeeded(), contains('${{ parameters.framework }}', 'net5.')) + +- task: UseDotNet@2 + displayName: 'Use .NET Core sdk 6.0.100-rc.1' + inputs: + packageType: 'sdk' + version: '6.0.100-rc.1.21463.6' #- template: 'show-all-files.yml' # Uncomment for debugging - pwsh: | diff --git a/build/build.ps1 b/build/build.ps1 index 52ea7a356d..123172ee64 100644 --- a/build/build.ps1 +++ b/build/build.ps1 @@ -27,7 +27,7 @@ properties { [string]$publish_directory = "$release_directory/Publish" [string]$solutionFile = "$base_directory/Lucene.Net.sln" [string]$sdkPath = "$env:programfiles/dotnet/sdk" - [string]$sdkVersion = "5.0.400" + [string]$sdkVersion = "6.0.100-rc.1.21463.6" [bool]$skipSdkInstallation = $false [string]$globalJsonFile = "$base_directory/global.json" [string]$versionPropsFile = "$base_directory/Version.props" @@ -49,7 +49,7 @@ properties { [int]$maximumParalellJobs = 8 #test paramters - [string]$frameworks_to_test = "net5.0,netcoreapp3.1,net48,net461" + [string]$frameworks_to_test = "net6.0,net5.0,netcoreapp3.1,net48,net461" [string]$where = "" } From c649d9c1dfedbe063713c8e28f7e65fa3afe4831 Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Sun, 26 Sep 2021 15:05:57 +0700 Subject: [PATCH 2/4] SWEEP: Added target for net6.0 --- Directory.Build.props | 4 +--- Directory.Build.targets | 8 ++++++- TestTargetFramework.props | 2 ++ build/Dependencies.props | 8 ++----- .../Lucene.Net.Analysis.Common.csproj | 4 +++- .../Lucene.Net.Analysis.Kuromoji.csproj | 4 +++- .../Lucene.Net.Analysis.Morfologik.csproj | 4 +++- .../Lucene.Net.Analysis.OpenNLP.csproj | 2 ++ .../Lucene.Net.Analysis.Phonetic.csproj | 4 +++- .../Lucene.Net.Analysis.SmartCn.csproj | 4 +++- .../Lucene.Net.Analysis.Stempel.csproj | 4 +++- .../Lucene.Net.Benchmark.csproj | 10 ++++++-- .../Lucene.Net.Classification.csproj | 4 +++- .../Lucene.Net.Codecs.csproj | 4 +++- src/Lucene.Net.Demo/Lucene.Net.Demo.csproj | 4 +++- .../Lucene.Net.Expressions.csproj | 4 +++- src/Lucene.Net.Facet/Lucene.Net.Facet.csproj | 4 +++- .../Lucene.Net.Grouping.csproj | 4 +++- .../Lucene.Net.Highlighter.csproj | 4 +++- src/Lucene.Net.Join/Lucene.Net.Join.csproj | 4 +++- .../Lucene.Net.Memory.csproj | 4 +++- src/Lucene.Net.Misc/Lucene.Net.Misc.csproj | 4 +++- .../Lucene.Net.Queries.csproj | 4 +++- .../Standard/Parser/ParseException.cs | 4 ++-- .../Lucene.Net.QueryParser.csproj | 4 +++- .../Lucene.Net.Replicator.csproj | 4 +++- .../Lucene.Net.Sandbox.csproj | 4 +++- .../Lucene.Net.Spatial.csproj | 4 +++- .../Lucene.Net.Suggest.csproj | 4 +++- .../Lucene.Net.TestFramework.csproj | 23 ++++++++++++++----- .../Support/ExceptionSerializationTestBase.cs | 2 ++ .../Support/TestApiConsistency.cs | 4 ++-- .../Support/TestApiConsistency.cs | 2 +- .../Support/TestApiConsistency.cs | 4 ++-- .../Support/TestApiConsistency.cs | 4 ++-- src/Lucene.Net/Lucene.Net.csproj | 12 +++++++--- src/Lucene.Net/Store/NativeFSLockFactory.cs | 7 ++++++ .../Lucene.Net.CodeAnalysis.CSharp.csproj | 1 + ...Lucene.Net.CodeAnalysis.VisualBasic.csproj | 1 + .../Lucene.Net.CodeAnalysis/Version.props | 2 +- .../Lucene.Net.ICU/Lucene.Net.ICU.csproj | 4 +++- .../Lucene.Net.Replicator.AspNetCore.csproj | 4 +++- .../Lucene.Net.Tests.CodeAnalysis.csproj | 1 + .../Lucene.Net.Tests.Cli.csproj | 2 ++ src/dotnet/tools/lucene-cli/lucene-cli.csproj | 2 ++ 45 files changed, 146 insertions(+), 55 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 092f1bc142..532a8c63f0 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,4 +1,4 @@ - - - 9.0 diff --git a/Directory.Build.targets b/Directory.Build.targets index 186c3143b0..9ccf5450d9 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -69,13 +69,19 @@ $(DefineConstants);FEATURE_SERIALIZABLE $(DefineConstants);FEATURE_STACKTRACE $(DefineConstants);FEATURE_TEXTWRITER_CLOSE - $(DefineConstants);FEATURE_TEXTWRITER_INITIALIZELIFETIMESERVICE $(DefineConstants);FEATURE_THREADPOOL_UNSAFEQUEUEWORKITEM $(DefineConstants);FEATURE_TYPE_GETMETHOD__BINDINGFLAGS_PARAMS $(DefineConstants);FEATURE_XSLT + + + + $(DefineConstants);FEATURE_TEXTWRITER_INITIALIZELIFETIMESERVICE + + + diff --git a/TestTargetFramework.props b/TestTargetFramework.props index 88c4d5dcd3..d8f4194970 100644 --- a/TestTargetFramework.props +++ b/TestTargetFramework.props @@ -69,5 +69,7 @@ $(NoWarn);IDE0060 $(NoWarn);IDE1006 + + diff --git a/build/Dependencies.props b/build/Dependencies.props index e4d508409e..7f92198dde 100644 --- a/build/Dependencies.props +++ b/build/Dependencies.props @@ -47,13 +47,9 @@ $(MicrosoftCodeAnalysisCSharpPackageVersion) 2.6.1 $(MicrosoftCodeAnalysisVisualBasicPackageVersion) - 1.1.2 - $(MicrosoftExtensionsConfigurationPackageVersion_NET4_5_1) - $(MicrosoftExtensionsConfigurationPackageVersion_NET4_5_1) - $(MicrosoftExtensionsConfigurationPackageVersion_NET4_5_1) - $(MicrosoftExtensionsConfigurationPackageVersion_NET4_5_1) - $(MicrosoftExtensionsConfigurationPackageVersion_NET4_5_1) 2.0.0 + 1.1.2 + 6.0.0-rc.1.21451.13 $(MicrosoftExtensionsConfigurationPackageVersion) $(MicrosoftExtensionsConfigurationPackageVersion) $(MicrosoftExtensionsConfigurationPackageVersion) diff --git a/src/Lucene.Net.Analysis.Common/Lucene.Net.Analysis.Common.csproj b/src/Lucene.Net.Analysis.Common/Lucene.Net.Analysis.Common.csproj index 62530a06dd..ee7887aca3 100644 --- a/src/Lucene.Net.Analysis.Common/Lucene.Net.Analysis.Common.csproj +++ b/src/Lucene.Net.Analysis.Common/Lucene.Net.Analysis.Common.csproj @@ -24,7 +24,7 @@ - netstandard2.1;netstandard2.0 + net6.0;netstandard2.1;netstandard2.0 $(TargetFrameworks);net45 Lucene.Net.Analysis.Common @@ -34,6 +34,8 @@ $(NoWarn);1591;1573 + + diff --git a/src/Lucene.Net.Analysis.Kuromoji/Lucene.Net.Analysis.Kuromoji.csproj b/src/Lucene.Net.Analysis.Kuromoji/Lucene.Net.Analysis.Kuromoji.csproj index 643c847804..51228caa89 100644 --- a/src/Lucene.Net.Analysis.Kuromoji/Lucene.Net.Analysis.Kuromoji.csproj +++ b/src/Lucene.Net.Analysis.Kuromoji/Lucene.Net.Analysis.Kuromoji.csproj @@ -24,7 +24,7 @@ - netstandard2.1;netstandard2.0 + net6.0;netstandard2.1;netstandard2.0 $(TargetFrameworks);net45 Lucene.Net.Analysis.Kuromoji @@ -34,6 +34,8 @@ $(NoWarn);1591;1573 + + diff --git a/src/Lucene.Net.Analysis.Morfologik/Lucene.Net.Analysis.Morfologik.csproj b/src/Lucene.Net.Analysis.Morfologik/Lucene.Net.Analysis.Morfologik.csproj index 9668a39b84..2571a6ea2d 100644 --- a/src/Lucene.Net.Analysis.Morfologik/Lucene.Net.Analysis.Morfologik.csproj +++ b/src/Lucene.Net.Analysis.Morfologik/Lucene.Net.Analysis.Morfologik.csproj @@ -24,7 +24,7 @@ - netstandard2.1;netstandard2.0 + net6.0;netstandard2.1;netstandard2.0 $(TargetFrameworks);net451 Lucene.Net.Analysis.Morfologik @@ -35,6 +35,8 @@ $(NoWarn);1591;1573 + + diff --git a/src/Lucene.Net.Analysis.OpenNLP/Lucene.Net.Analysis.OpenNLP.csproj b/src/Lucene.Net.Analysis.OpenNLP/Lucene.Net.Analysis.OpenNLP.csproj index 848d91b01d..016fcb4c26 100644 --- a/src/Lucene.Net.Analysis.OpenNLP/Lucene.Net.Analysis.OpenNLP.csproj +++ b/src/Lucene.Net.Analysis.OpenNLP/Lucene.Net.Analysis.OpenNLP.csproj @@ -35,6 +35,8 @@ Lucene.Net.Analysis.OpenNlp + + diff --git a/src/Lucene.Net.Analysis.Phonetic/Lucene.Net.Analysis.Phonetic.csproj b/src/Lucene.Net.Analysis.Phonetic/Lucene.Net.Analysis.Phonetic.csproj index 4bf3e01de6..e558a664a6 100644 --- a/src/Lucene.Net.Analysis.Phonetic/Lucene.Net.Analysis.Phonetic.csproj +++ b/src/Lucene.Net.Analysis.Phonetic/Lucene.Net.Analysis.Phonetic.csproj @@ -24,7 +24,7 @@ - netstandard2.1;netstandard2.0 + net6.0;netstandard2.1;netstandard2.0 $(TargetFrameworks);net45 Lucene.Net.Analysis.Phonetic @@ -34,6 +34,8 @@ $(NoWarn);1591;1573 + + diff --git a/src/Lucene.Net.Analysis.SmartCn/Lucene.Net.Analysis.SmartCn.csproj b/src/Lucene.Net.Analysis.SmartCn/Lucene.Net.Analysis.SmartCn.csproj index d59b8b38da..f4ae687e24 100644 --- a/src/Lucene.Net.Analysis.SmartCn/Lucene.Net.Analysis.SmartCn.csproj +++ b/src/Lucene.Net.Analysis.SmartCn/Lucene.Net.Analysis.SmartCn.csproj @@ -24,7 +24,7 @@ - netstandard2.1;netstandard2.0 + net6.0;netstandard2.1;netstandard2.0 $(TargetFrameworks);net451 Lucene.Net.Analysis.SmartCn @@ -35,6 +35,8 @@ $(NoWarn);1591;1573 + + diff --git a/src/Lucene.Net.Analysis.Stempel/Lucene.Net.Analysis.Stempel.csproj b/src/Lucene.Net.Analysis.Stempel/Lucene.Net.Analysis.Stempel.csproj index e038c76179..18c336bba4 100644 --- a/src/Lucene.Net.Analysis.Stempel/Lucene.Net.Analysis.Stempel.csproj +++ b/src/Lucene.Net.Analysis.Stempel/Lucene.Net.Analysis.Stempel.csproj @@ -24,7 +24,7 @@ - netstandard2.1;netstandard2.0 + net6.0;netstandard2.1;netstandard2.0 $(TargetFrameworks);net45 Lucene.Net.Analysis.Stempel @@ -34,6 +34,8 @@ $(NoWarn);1591;1573 + + diff --git a/src/Lucene.Net.Benchmark/Lucene.Net.Benchmark.csproj b/src/Lucene.Net.Benchmark/Lucene.Net.Benchmark.csproj index 86e065ca1b..f6e4080b12 100644 --- a/src/Lucene.Net.Benchmark/Lucene.Net.Benchmark.csproj +++ b/src/Lucene.Net.Benchmark/Lucene.Net.Benchmark.csproj @@ -24,7 +24,7 @@ - netstandard2.1;netstandard2.0 + net6.0;netstandard2.1;netstandard2.0 $(TargetFrameworks);net451 Lucene.Net.Benchmark @@ -34,8 +34,10 @@ $(NoWarn);1591;1573 + + - + @@ -51,6 +53,10 @@ + + + + diff --git a/src/Lucene.Net.Classification/Lucene.Net.Classification.csproj b/src/Lucene.Net.Classification/Lucene.Net.Classification.csproj index ae9125f4b6..dcb14f36ce 100644 --- a/src/Lucene.Net.Classification/Lucene.Net.Classification.csproj +++ b/src/Lucene.Net.Classification/Lucene.Net.Classification.csproj @@ -24,7 +24,7 @@ - netstandard2.1;netstandard2.0 + net6.0;netstandard2.1;netstandard2.0 $(TargetFrameworks);net45 Lucene.Net.Classification @@ -34,6 +34,8 @@ $(NoWarn);1591;1573 + + diff --git a/src/Lucene.Net.Codecs/Lucene.Net.Codecs.csproj b/src/Lucene.Net.Codecs/Lucene.Net.Codecs.csproj index 6a5a819b08..67816ef715 100644 --- a/src/Lucene.Net.Codecs/Lucene.Net.Codecs.csproj +++ b/src/Lucene.Net.Codecs/Lucene.Net.Codecs.csproj @@ -24,7 +24,7 @@ - netstandard2.1;netstandard2.0 + net6.0;netstandard2.1;netstandard2.0 $(TargetFrameworks);net45 Lucene.Net.Codecs @@ -34,6 +34,8 @@ $(NoWarn);1591;1573 + + diff --git a/src/Lucene.Net.Demo/Lucene.Net.Demo.csproj b/src/Lucene.Net.Demo/Lucene.Net.Demo.csproj index 7d159410f6..c59835699c 100644 --- a/src/Lucene.Net.Demo/Lucene.Net.Demo.csproj +++ b/src/Lucene.Net.Demo/Lucene.Net.Demo.csproj @@ -24,7 +24,7 @@ - netstandard2.1;netstandard2.0 + net6.0;netstandard2.1;netstandard2.0 $(TargetFrameworks);net45 Lucene.Net.Demo @@ -36,6 +36,8 @@ $(NoWarn);IDE0060 + + diff --git a/src/Lucene.Net.Expressions/Lucene.Net.Expressions.csproj b/src/Lucene.Net.Expressions/Lucene.Net.Expressions.csproj index 3fe8003039..d438dabf2a 100644 --- a/src/Lucene.Net.Expressions/Lucene.Net.Expressions.csproj +++ b/src/Lucene.Net.Expressions/Lucene.Net.Expressions.csproj @@ -24,7 +24,7 @@ - netstandard2.1;netstandard2.0 + net6.0;netstandard2.1;netstandard2.0 $(TargetFrameworks);net45 Lucene.Net.Expressions @@ -34,6 +34,8 @@ $(NoWarn);1591;1573 + + diff --git a/src/Lucene.Net.Facet/Lucene.Net.Facet.csproj b/src/Lucene.Net.Facet/Lucene.Net.Facet.csproj index 6dcc9a1ebb..20dd12974d 100644 --- a/src/Lucene.Net.Facet/Lucene.Net.Facet.csproj +++ b/src/Lucene.Net.Facet/Lucene.Net.Facet.csproj @@ -24,7 +24,7 @@ - netstandard2.1;netstandard2.0 + net6.0;netstandard2.1;netstandard2.0 $(TargetFrameworks);net45 Lucene.Net.Facet @@ -34,6 +34,8 @@ $(NoWarn);1591;1573 + + diff --git a/src/Lucene.Net.Grouping/Lucene.Net.Grouping.csproj b/src/Lucene.Net.Grouping/Lucene.Net.Grouping.csproj index 137013a68a..d7f73b47f2 100644 --- a/src/Lucene.Net.Grouping/Lucene.Net.Grouping.csproj +++ b/src/Lucene.Net.Grouping/Lucene.Net.Grouping.csproj @@ -24,7 +24,7 @@ - netstandard2.1;netstandard2.0 + net6.0;netstandard2.1;netstandard2.0 $(TargetFrameworks);net45 Lucene.Net.Grouping @@ -34,6 +34,8 @@ $(NoWarn);1591;1573 + + diff --git a/src/Lucene.Net.Highlighter/Lucene.Net.Highlighter.csproj b/src/Lucene.Net.Highlighter/Lucene.Net.Highlighter.csproj index fa9c435a59..8ff5f7ce23 100644 --- a/src/Lucene.Net.Highlighter/Lucene.Net.Highlighter.csproj +++ b/src/Lucene.Net.Highlighter/Lucene.Net.Highlighter.csproj @@ -24,7 +24,7 @@ - netstandard2.1;netstandard2.0 + net6.0;netstandard2.1;netstandard2.0 $(TargetFrameworks);net45 Lucene.Net.Highlighter @@ -34,6 +34,8 @@ $(NoWarn);1591;1573 + + diff --git a/src/Lucene.Net.Join/Lucene.Net.Join.csproj b/src/Lucene.Net.Join/Lucene.Net.Join.csproj index b26d13feec..a1c32bbcbe 100644 --- a/src/Lucene.Net.Join/Lucene.Net.Join.csproj +++ b/src/Lucene.Net.Join/Lucene.Net.Join.csproj @@ -24,7 +24,7 @@ - netstandard2.1;netstandard2.0 + net6.0;netstandard2.1;netstandard2.0 $(TargetFrameworks);net45 Lucene.Net.Search.Join @@ -36,6 +36,8 @@ $(NoWarn);1591;1573 + + diff --git a/src/Lucene.Net.Memory/Lucene.Net.Memory.csproj b/src/Lucene.Net.Memory/Lucene.Net.Memory.csproj index 3139df0545..fbfa4161aa 100644 --- a/src/Lucene.Net.Memory/Lucene.Net.Memory.csproj +++ b/src/Lucene.Net.Memory/Lucene.Net.Memory.csproj @@ -24,7 +24,7 @@ - netstandard2.1;netstandard2.0 + net6.0;netstandard2.1;netstandard2.0 $(TargetFrameworks);net45 Lucene.Net.Memory @@ -34,6 +34,8 @@ $(NoWarn);1591;1573 + + diff --git a/src/Lucene.Net.Misc/Lucene.Net.Misc.csproj b/src/Lucene.Net.Misc/Lucene.Net.Misc.csproj index 57ee091f95..7340736887 100644 --- a/src/Lucene.Net.Misc/Lucene.Net.Misc.csproj +++ b/src/Lucene.Net.Misc/Lucene.Net.Misc.csproj @@ -24,7 +24,7 @@ - netstandard2.1;netstandard2.0 + net6.0;netstandard2.1;netstandard2.0 $(TargetFrameworks);net45 Lucene.Net.Misc @@ -34,6 +34,8 @@ $(NoWarn);1591;1573 + + diff --git a/src/Lucene.Net.Queries/Lucene.Net.Queries.csproj b/src/Lucene.Net.Queries/Lucene.Net.Queries.csproj index 9e8179a85c..e597d343b6 100644 --- a/src/Lucene.Net.Queries/Lucene.Net.Queries.csproj +++ b/src/Lucene.Net.Queries/Lucene.Net.Queries.csproj @@ -24,7 +24,7 @@ - netstandard2.1;netstandard2.0 + net6.0;netstandard2.1;netstandard2.0 $(TargetFrameworks);net45 Lucene.Net.Queries @@ -34,6 +34,8 @@ $(NoWarn);1591;1573 + + diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs index 519645d97a..e167f0da71 100644 --- a/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs +++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs @@ -55,7 +55,7 @@ public class ParseException : QueryNodeParseException /// public ParseException(Token currentToken, int[][] expectedTokenSequences, string[] tokenImage) - : base(string.Format(QueryParserMessages.INVALID_SYNTAX, Initialize( + : base(string.Format(QueryParserMessages.INVALID_SYNTAX!, Initialize( currentToken, expectedTokenSequences, tokenImage))) { this.CurrentToken = currentToken; @@ -73,7 +73,7 @@ public ParseException(Token currentToken, /// these constructors. /// public ParseException() - : base(string.Format(QueryParserMessages.INVALID_SYNTAX, "Error")) + : base(string.Format(QueryParserMessages.INVALID_SYNTAX!, "Error")!) { } diff --git a/src/Lucene.Net.QueryParser/Lucene.Net.QueryParser.csproj b/src/Lucene.Net.QueryParser/Lucene.Net.QueryParser.csproj index 4d287a7182..8558a2897a 100644 --- a/src/Lucene.Net.QueryParser/Lucene.Net.QueryParser.csproj +++ b/src/Lucene.Net.QueryParser/Lucene.Net.QueryParser.csproj @@ -24,7 +24,7 @@ - netstandard2.1;netstandard2.0 + net6.0;netstandard2.1;netstandard2.0 $(TargetFrameworks);net45 Lucene.Net.QueryParsers @@ -37,6 +37,8 @@ $(NoWarn);1591;1573 $(NoWarn);IDE0060 + + diff --git a/src/Lucene.Net.Replicator/Lucene.Net.Replicator.csproj b/src/Lucene.Net.Replicator/Lucene.Net.Replicator.csproj index a39aca9956..3bc3f88292 100644 --- a/src/Lucene.Net.Replicator/Lucene.Net.Replicator.csproj +++ b/src/Lucene.Net.Replicator/Lucene.Net.Replicator.csproj @@ -24,7 +24,7 @@ - netstandard2.1;netstandard2.0 + net6.0;netstandard2.1;netstandard2.0 $(TargetFrameworks);net45 Lucene.Net.Replicator @@ -34,6 +34,8 @@ $(NoWarn);1591;1573 + + diff --git a/src/Lucene.Net.Sandbox/Lucene.Net.Sandbox.csproj b/src/Lucene.Net.Sandbox/Lucene.Net.Sandbox.csproj index 8f7fc9397f..9bc6a73f6d 100644 --- a/src/Lucene.Net.Sandbox/Lucene.Net.Sandbox.csproj +++ b/src/Lucene.Net.Sandbox/Lucene.Net.Sandbox.csproj @@ -24,7 +24,7 @@ - netstandard2.1;netstandard2.0 + net6.0;netstandard2.1;netstandard2.0 $(TargetFrameworks);net45 Lucene.Net.Sandbox @@ -34,6 +34,8 @@ $(NoWarn);1591;1573 + + diff --git a/src/Lucene.Net.Spatial/Lucene.Net.Spatial.csproj b/src/Lucene.Net.Spatial/Lucene.Net.Spatial.csproj index 1ab1a9049c..c116d28910 100644 --- a/src/Lucene.Net.Spatial/Lucene.Net.Spatial.csproj +++ b/src/Lucene.Net.Spatial/Lucene.Net.Spatial.csproj @@ -24,7 +24,7 @@ - netstandard2.1;netstandard2.0 + net6.0;netstandard2.1;netstandard2.0 $(TargetFrameworks);net45 Lucene.Net.Spatial @@ -34,6 +34,8 @@ $(NoWarn);1591;1573 + + diff --git a/src/Lucene.Net.Suggest/Lucene.Net.Suggest.csproj b/src/Lucene.Net.Suggest/Lucene.Net.Suggest.csproj index 466f960073..081167649a 100644 --- a/src/Lucene.Net.Suggest/Lucene.Net.Suggest.csproj +++ b/src/Lucene.Net.Suggest/Lucene.Net.Suggest.csproj @@ -24,7 +24,7 @@ - netstandard2.1;netstandard2.0 + net6.0;netstandard2.1;netstandard2.0 $(TargetFrameworks);net45 Lucene.Net.Suggest @@ -34,6 +34,8 @@ $(NoWarn);1591;1573 + + diff --git a/src/Lucene.Net.TestFramework/Lucene.Net.TestFramework.csproj b/src/Lucene.Net.TestFramework/Lucene.Net.TestFramework.csproj index 372aa91e9a..fccf5e4e41 100644 --- a/src/Lucene.Net.TestFramework/Lucene.Net.TestFramework.csproj +++ b/src/Lucene.Net.TestFramework/Lucene.Net.TestFramework.csproj @@ -24,7 +24,7 @@ - netstandard2.1;netstandard2.0; + net6.0;netstandard2.1;netstandard2.0; $(TargetFrameworks);net451 Lucene.Net.TestFramework @@ -40,6 +40,8 @@ $(DefineConstants);TESTFRAMEWORK_NUNIT + + @@ -61,6 +63,15 @@ + + + + + + + + + @@ -79,11 +90,11 @@ - - - - - + + + + + diff --git a/src/Lucene.Net.TestFramework/Support/ExceptionSerializationTestBase.cs b/src/Lucene.Net.TestFramework/Support/ExceptionSerializationTestBase.cs index f70e070aa5..1c81999444 100644 --- a/src/Lucene.Net.TestFramework/Support/ExceptionSerializationTestBase.cs +++ b/src/Lucene.Net.TestFramework/Support/ExceptionSerializationTestBase.cs @@ -44,11 +44,13 @@ protected static bool TypeCanSerialize(T exception) try { +#pragma warning disable SYSLIB0011 // Type or member is obsolete (BinaryFormatter) var binaryFormatter = new BinaryFormatter(); using var serializationStream = new MemoryStream(); binaryFormatter.Serialize(serializationStream, exception); serializationStream.Seek(0, SeekOrigin.Begin); clone = (T)binaryFormatter.Deserialize(serializationStream); +#pragma warning restore SYSLIB0011 // Type or member is obsolete (BinaryFormatter) } catch (SerializationException) { diff --git a/src/Lucene.Net.Tests.Facet/Support/TestApiConsistency.cs b/src/Lucene.Net.Tests.Facet/Support/TestApiConsistency.cs index 8521bf8791..3bb67773e2 100644 --- a/src/Lucene.Net.Tests.Facet/Support/TestApiConsistency.cs +++ b/src/Lucene.Net.Tests.Facet/Support/TestApiConsistency.cs @@ -1,4 +1,4 @@ -using Lucene.Net.Attributes; +using Lucene.Net.Attributes; using Lucene.Net.Util; using NUnit.Framework; using System; @@ -45,7 +45,7 @@ public override void TestPrivateFieldNames(Type typeFromTargetAssembly) [TestCase(typeof(Lucene.Net.Facet.Facets))] public override void TestPublicFields(Type typeFromTargetAssembly) { - base.TestPublicFields(typeFromTargetAssembly, @"OrdAndValue"); + base.TestPublicFields(typeFromTargetAssembly, @"OrdAndValue|^System\.Runtime\.CompilerServices"); } [Test, LuceneNetSpecific] diff --git a/src/Lucene.Net.Tests.Replicator/Support/TestApiConsistency.cs b/src/Lucene.Net.Tests.Replicator/Support/TestApiConsistency.cs index 7492719d45..e34708b5ce 100644 --- a/src/Lucene.Net.Tests.Replicator/Support/TestApiConsistency.cs +++ b/src/Lucene.Net.Tests.Replicator/Support/TestApiConsistency.cs @@ -45,7 +45,7 @@ public override void TestPrivateFieldNames(Type typeFromTargetAssembly) [TestCase(typeof(Lucene.Net.Replicator.IReplicator))] public override void TestPublicFields(Type typeFromTargetAssembly) { - base.TestPublicFields(typeFromTargetAssembly); + base.TestPublicFields(typeFromTargetAssembly, @"^System\.Runtime\.CompilerServices"); } [Test, LuceneNetSpecific] diff --git a/src/Lucene.Net.Tests.Spatial/Support/TestApiConsistency.cs b/src/Lucene.Net.Tests.Spatial/Support/TestApiConsistency.cs index b4d96e6133..56b7254561 100644 --- a/src/Lucene.Net.Tests.Spatial/Support/TestApiConsistency.cs +++ b/src/Lucene.Net.Tests.Spatial/Support/TestApiConsistency.cs @@ -1,4 +1,4 @@ -using Lucene.Net.Attributes; +using Lucene.Net.Attributes; using Lucene.Net.Util; using NUnit.Framework; using System; @@ -45,7 +45,7 @@ public override void TestPrivateFieldNames(Type typeFromTargetAssembly) [TestCase(typeof(Lucene.Net.Spatial.DisjointSpatialFilter))] public override void TestPublicFields(Type typeFromTargetAssembly) { - base.TestPublicFields(typeFromTargetAssembly); + base.TestPublicFields(typeFromTargetAssembly, @"^System\.Runtime\.CompilerServices"); } [Test, LuceneNetSpecific] diff --git a/src/Lucene.Net.Tests.TestFramework/Support/TestApiConsistency.cs b/src/Lucene.Net.Tests.TestFramework/Support/TestApiConsistency.cs index d0eed4e9e0..ab068f2c22 100644 --- a/src/Lucene.Net.Tests.TestFramework/Support/TestApiConsistency.cs +++ b/src/Lucene.Net.Tests.TestFramework/Support/TestApiConsistency.cs @@ -1,4 +1,4 @@ -#if TESTFRAMEWORK_NUNIT +#if TESTFRAMEWORK_NUNIT using Lucene.Net.Attributes; using Lucene.Net.Util; using NUnit.Framework; @@ -46,7 +46,7 @@ public override void TestPrivateFieldNames(Type typeFromTargetAssembly) [TestCase(typeof(Lucene.Net.RandomExtensions))] public override void TestPublicFields(Type typeFromTargetAssembly) { - base.TestPublicFields(typeFromTargetAssembly); + base.TestPublicFields(typeFromTargetAssembly, @"^System\.Runtime\.CompilerServices"); } [Test, LuceneNetSpecific] diff --git a/src/Lucene.Net/Lucene.Net.csproj b/src/Lucene.Net/Lucene.Net.csproj index 0bb541a19f..062565d3a8 100644 --- a/src/Lucene.Net/Lucene.Net.csproj +++ b/src/Lucene.Net/Lucene.Net.csproj @@ -24,7 +24,7 @@ - netstandard2.1;netstandard2.0 + net6.0;netstandard2.1;netstandard2.0 $(TargetFrameworks);net45 Lucene.Net @@ -33,6 +33,8 @@ $(NoWarn);1591;1573 + + $(SolutionDir)src\dotnet\ $(LuceneNetDotNetDir)Lucene.Net.CodeAnalysis\tools\ @@ -49,7 +51,11 @@ - + + + + + @@ -59,7 +65,7 @@ - + diff --git a/src/Lucene.Net/Store/NativeFSLockFactory.cs b/src/Lucene.Net/Store/NativeFSLockFactory.cs index c02efb9065..484d88995c 100644 --- a/src/Lucene.Net/Store/NativeFSLockFactory.cs +++ b/src/Lucene.Net/Store/NativeFSLockFactory.cs @@ -116,7 +116,9 @@ private static bool LoadIsFileStreamLockingPlatform() return FileSupport.GetFileIOExceptionHResult(provokeException: (fileName) => { using var lockStream = new FileStream(fileName, FileMode.OpenOrCreate, FileAccess.Write, FileShare.ReadWrite); +#pragma warning disable CA1416 // Validate platform compatibility lockStream.Lock(0, 1); // Create an exclusive lock +#pragma warning restore CA1416 // Validate platform compatibility using var stream = new FileStream(fileName, FileMode.Open, FileAccess.Write, FileShare.ReadWrite); // try to find out if the file is locked by writing a byte. Note that we need to flush the stream to find out. stream.WriteByte(0); @@ -207,7 +209,9 @@ internal virtual Lock NewLock(string path) switch (LockingStrategy) { case FSLockingStrategy.FileStreamLockViolation: +#pragma warning disable CA1416 // Validate platform compatibility return new NativeFSLock(m_lockDir, path); +#pragma warning restore CA1416 // Validate platform compatibility case FSLockingStrategy.FileSharingViolation: return new SharingNativeFSLock(m_lockDir, path); default: @@ -562,6 +566,9 @@ public override string ToString() } // Uses FileStream locking of file pages. +#if NET6_0 + [System.Runtime.Versioning.SupportedOSPlatform("windows")] +#endif internal class NativeFSLock : Lock { #pragma warning disable CA2213 // Disposable fields should be disposed diff --git a/src/dotnet/Lucene.Net.CodeAnalysis.CSharp/Lucene.Net.CodeAnalysis.CSharp.csproj b/src/dotnet/Lucene.Net.CodeAnalysis.CSharp/Lucene.Net.CodeAnalysis.CSharp.csproj index 287b9df9e1..9c00e0fd40 100644 --- a/src/dotnet/Lucene.Net.CodeAnalysis.CSharp/Lucene.Net.CodeAnalysis.CSharp.csproj +++ b/src/dotnet/Lucene.Net.CodeAnalysis.CSharp/Lucene.Net.CodeAnalysis.CSharp.csproj @@ -26,6 +26,7 @@ false + diff --git a/src/dotnet/Lucene.Net.CodeAnalysis.VisualBasic/Lucene.Net.CodeAnalysis.VisualBasic.csproj b/src/dotnet/Lucene.Net.CodeAnalysis.VisualBasic/Lucene.Net.CodeAnalysis.VisualBasic.csproj index 96fddc8e7c..16c36e75e1 100644 --- a/src/dotnet/Lucene.Net.CodeAnalysis.VisualBasic/Lucene.Net.CodeAnalysis.VisualBasic.csproj +++ b/src/dotnet/Lucene.Net.CodeAnalysis.VisualBasic/Lucene.Net.CodeAnalysis.VisualBasic.csproj @@ -26,6 +26,7 @@ false + diff --git a/src/dotnet/Lucene.Net.CodeAnalysis/Version.props b/src/dotnet/Lucene.Net.CodeAnalysis/Version.props index 86cc7efb5c..3a2ff83abb 100644 --- a/src/dotnet/Lucene.Net.CodeAnalysis/Version.props +++ b/src/dotnet/Lucene.Net.CodeAnalysis/Version.props @@ -22,7 +22,7 @@ IMPORTANT: Make sure you update the AssemblyVersionRevision number on every code/dependency/script change! --> - 10 + 11 ^\d+\.\d+\.\d+ $([System.Text.RegularExpressions.Regex]::Match($(AssemblyVersion), $(AssemblyMajorMinorPatchPattern))) diff --git a/src/dotnet/Lucene.Net.ICU/Lucene.Net.ICU.csproj b/src/dotnet/Lucene.Net.ICU/Lucene.Net.ICU.csproj index 2609630f2d..0df532206b 100644 --- a/src/dotnet/Lucene.Net.ICU/Lucene.Net.ICU.csproj +++ b/src/dotnet/Lucene.Net.ICU/Lucene.Net.ICU.csproj @@ -24,7 +24,7 @@ - netstandard2.1;netstandard2.0 + net6.0;netstandard2.1;netstandard2.0 $(TargetFrameworks);net451 Lucene.Net.ICU @@ -35,6 +35,8 @@ $(DefineConstants);FEATURE_BREAKITERATOR + + diff --git a/src/dotnet/Lucene.Net.Replicator.AspNetCore/Lucene.Net.Replicator.AspNetCore.csproj b/src/dotnet/Lucene.Net.Replicator.AspNetCore/Lucene.Net.Replicator.AspNetCore.csproj index eda1b13fbb..aaaac774f6 100644 --- a/src/dotnet/Lucene.Net.Replicator.AspNetCore/Lucene.Net.Replicator.AspNetCore.csproj +++ b/src/dotnet/Lucene.Net.Replicator.AspNetCore/Lucene.Net.Replicator.AspNetCore.csproj @@ -25,7 +25,7 @@ - netstandard2.1;netstandard2.0 + net6.0;netstandard2.1;netstandard2.0 $(TargetFrameworks);net461 Lucene.Net.Replicator.AspNetCore @@ -35,6 +35,8 @@ $(NoWarn);1591;1573 + + diff --git a/src/dotnet/Lucene.Net.Tests.CodeAnalysis/Lucene.Net.Tests.CodeAnalysis.csproj b/src/dotnet/Lucene.Net.Tests.CodeAnalysis/Lucene.Net.Tests.CodeAnalysis.csproj index 98c2690aa4..fdf9b80b3c 100644 --- a/src/dotnet/Lucene.Net.Tests.CodeAnalysis/Lucene.Net.Tests.CodeAnalysis.csproj +++ b/src/dotnet/Lucene.Net.Tests.CodeAnalysis/Lucene.Net.Tests.CodeAnalysis.csproj @@ -29,6 +29,7 @@ true + diff --git a/src/dotnet/tools/Lucene.Net.Tests.Cli/Lucene.Net.Tests.Cli.csproj b/src/dotnet/tools/Lucene.Net.Tests.Cli/Lucene.Net.Tests.Cli.csproj index ce60c0352a..5f9279e61a 100644 --- a/src/dotnet/tools/Lucene.Net.Tests.Cli/Lucene.Net.Tests.Cli.csproj +++ b/src/dotnet/tools/Lucene.Net.Tests.Cli/Lucene.Net.Tests.Cli.csproj @@ -29,6 +29,8 @@ true + + diff --git a/src/dotnet/tools/lucene-cli/lucene-cli.csproj b/src/dotnet/tools/lucene-cli/lucene-cli.csproj index ba41309d9c..592bd1108a 100644 --- a/src/dotnet/tools/lucene-cli/lucene-cli.csproj +++ b/src/dotnet/tools/lucene-cli/lucene-cli.csproj @@ -43,6 +43,8 @@ $(NoWarn);IDE0060 + + Always From aff09a2da2658030dfa32be480d1c5cec31c6ea8 Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Sun, 26 Sep 2021 19:02:10 +0700 Subject: [PATCH 3/4] .github/workflows/Generate-TestWorkflows.ps1: Added tests for .NET 6 --- .github/workflows/Generate-TestWorkflows.ps1 | 17 +++++++++++++---- .../workflows/Lucene-Net-Tests-AllProjects.yml | 8 +++++++- .../Lucene-Net-Tests-Analysis-Common.yml | 8 +++++++- .../Lucene-Net-Tests-Analysis-Kuromoji.yml | 8 +++++++- .../Lucene-Net-Tests-Analysis-Morfologik.yml | 8 +++++++- .../Lucene-Net-Tests-Analysis-OpenNLP.yml | 6 ++++++ .../Lucene-Net-Tests-Analysis-Phonetic.yml | 8 +++++++- .../Lucene-Net-Tests-Analysis-SmartCn.yml | 8 +++++++- .../Lucene-Net-Tests-Analysis-Stempel.yml | 8 +++++++- .../workflows/Lucene-Net-Tests-Benchmark.yml | 8 +++++++- .../Lucene-Net-Tests-Classification.yml | 8 +++++++- .github/workflows/Lucene-Net-Tests-Cli.yml | 6 ++++++ .../workflows/Lucene-Net-Tests-CodeAnalysis.yml | 6 ++++++ .github/workflows/Lucene-Net-Tests-Codecs.yml | 8 +++++++- .github/workflows/Lucene-Net-Tests-Demo.yml | 10 ++++++++-- .../workflows/Lucene-Net-Tests-Expressions.yml | 12 +++++++++--- .github/workflows/Lucene-Net-Tests-Facet.yml | 12 +++++++++--- .github/workflows/Lucene-Net-Tests-Grouping.yml | 12 +++++++++--- .../workflows/Lucene-Net-Tests-Highlighter.yml | 12 +++++++++--- .github/workflows/Lucene-Net-Tests-ICU.yml | 12 +++++++++--- .github/workflows/Lucene-Net-Tests-Join.yml | 12 +++++++++--- .github/workflows/Lucene-Net-Tests-Memory.yml | 12 +++++++++--- .github/workflows/Lucene-Net-Tests-Misc.yml | 10 ++++++++-- .github/workflows/Lucene-Net-Tests-Queries.yml | 10 ++++++++-- .../workflows/Lucene-Net-Tests-QueryParser.yml | 10 ++++++++-- .../workflows/Lucene-Net-Tests-Replicator.yml | 12 +++++++++--- .github/workflows/Lucene-Net-Tests-Sandbox.yml | 10 ++++++++-- .github/workflows/Lucene-Net-Tests-Spatial.yml | 12 +++++++++--- .github/workflows/Lucene-Net-Tests-Suggest.yml | 12 +++++++++--- ...-Tests-TestFramework-DependencyInjection.yml | 8 +++++++- .../Lucene-Net-Tests-TestFramework.yml | 8 +++++++- .github/workflows/Lucene-Net-Tests-_A-D.yml | 10 ++++++++-- .github/workflows/Lucene-Net-Tests-_E-I.yml | 10 ++++++++-- .github/workflows/Lucene-Net-Tests-_I-J.yml | 10 ++++++++-- .github/workflows/Lucene-Net-Tests-_J-S.yml | 10 ++++++++-- .github/workflows/Lucene-Net-Tests-_T-Z.yml | 10 ++++++++-- 36 files changed, 285 insertions(+), 66 deletions(-) diff --git a/.github/workflows/Generate-TestWorkflows.ps1 b/.github/workflows/Generate-TestWorkflows.ps1 index df44360a04..3efb378db1 100644 --- a/.github/workflows/Generate-TestWorkflows.ps1 +++ b/.github/workflows/Generate-TestWorkflows.ps1 @@ -38,7 +38,7 @@ .PARAMETER TestFrameworks A string array of Dotnet target framework monikers to run the tests on. The default is - @('net5.0','net461','net48'). + @('net6.0', 'net5.0','net461','net48'). .PARAMETER OperatingSystems A string array of Github Actions operating system monikers to run the tests on. @@ -65,7 +65,7 @@ param( [string]$RepoRoot = (Split-Path (Split-Path $PSScriptRoot)), - [string[]]$TestFrameworks = @('net5.0','net461','net48'), # targets under test: netstanrd2.1, netstanard2.0, net45 + [string[]]$TestFrameworks = @('net6.0', 'net5.0','net461','net48'), # targets under test: net6.0, netstandard2.1, netstanard2.0, net45 [string[]]$OperatingSystems = @('windows-latest', 'ubuntu-latest'), @@ -73,6 +73,8 @@ param( [string[]]$Configurations = @('Release'), + [string]$DotNet6SDKVersion = '6.0.100-rc.1.21463.6', + [string]$DotNet5SDKVersion = '5.0.400', [string]$DotNetCore3SDKVersion = '3.1.412' @@ -155,6 +157,7 @@ function Write-TestWorkflow( [string[]]$TestFrameworks = @('net5.0', 'net48'), [string[]]$TestPlatforms = @('x64'), [string[]]$OperatingSystems = @('windows-latest', 'ubuntu-latest', 'macos-latest'), + [string]$DotNet6SDKVersion = $DotNet6SDKVersion, [string]$DotNet5SDKVersion = $DotNet5SDKVersion, [string]$DotNetCore3SDKVersion = $DotNetCore3SDKVersion) { @@ -263,6 +266,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '$DotNet5SDKVersion' + if: `${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '$DotNet6SDKVersion' - run: | `$project_name = [System.IO.Path]::GetFileNameWithoutExtension(`$env:project_path) @@ -307,7 +316,7 @@ try { Pop-Location } -#Write-TestWorkflow -OutputDirectory $OutputDirectory -ProjectPath $projectPath -RelativeRoot $repoRoot -TestFrameworks @('net5.0','netcoreapp3.1') -OperatingSystems $OperatingSystems -TestPlatforms $TestPlatforms -Configurations $Configurations -DotNet5SDKVersion $DotNet5SDKVersion -DotNetCore3SDKVersion $DotNetCore3SDKVersion +#Write-TestWorkflow -OutputDirectory $OutputDirectory -ProjectPath $projectPath -RelativeRoot $repoRoot -TestFrameworks @('net5.0','netcoreapp3.1') -OperatingSystems $OperatingSystems -TestPlatforms $TestPlatforms -Configurations $Configurations -DotNet6SDKVersion $DotNet6SDKVersion -DotNet5SDKVersion $DotNet5SDKVersion -DotNetCore3SDKVersion $DotNetCore3SDKVersion #Write-Host $TestProjects @@ -331,5 +340,5 @@ foreach ($testProject in $TestProjects) { } #Write-Host "Project: $projectName" - Write-TestWorkflow -OutputDirectory $OutputDirectory -ProjectPath $testProject -RelativeRoot $RepoRoot -TestFrameworks $frameworks -OperatingSystems $OperatingSystems -TestPlatforms $TestPlatforms -Configurations $Configurations -DotNet5SDKVersion $DotNet5SDKVersion -DotNetCore3SDKVersion $DotNetCore3SDKVersion + Write-TestWorkflow -OutputDirectory $OutputDirectory -ProjectPath $testProject -RelativeRoot $RepoRoot -TestFrameworks $frameworks -OperatingSystems $OperatingSystems -TestPlatforms $TestPlatforms -Configurations $Configurations -DotNet6SDKVersion $DotNet6SDKVersion -DotNet5SDKVersion $DotNet5SDKVersion -DotNetCore3SDKVersion $DotNetCore3SDKVersion } \ No newline at end of file diff --git a/.github/workflows/Lucene-Net-Tests-AllProjects.yml b/.github/workflows/Lucene-Net-Tests-AllProjects.yml index 4bce2a044a..0f97f64ffc 100644 --- a/.github/workflows/Lucene-Net-Tests-AllProjects.yml +++ b/.github/workflows/Lucene-Net-Tests-AllProjects.yml @@ -72,7 +72,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net5.0, net461, net48] + framework: [net6.0, net5.0, net461, net48] platform: [x64] configuration: [Release] exclude: @@ -102,6 +102,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Common.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Common.yml index 206bf71e70..450191a36e 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-Common.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-Common.yml @@ -56,7 +56,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net5.0, net461, net48] + framework: [net6.0, net5.0, net461, net48] platform: [x64] configuration: [Release] exclude: @@ -86,6 +86,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml index 3e6504655f..c3e698b90e 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml @@ -53,7 +53,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net5.0, net461, net48] + framework: [net6.0, net5.0, net461, net48] platform: [x64] configuration: [Release] exclude: @@ -83,6 +83,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml index 2ff1bb5644..d91f265afc 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml @@ -53,7 +53,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net5.0, net461, net48] + framework: [net6.0, net5.0, net461, net48] platform: [x64] configuration: [Release] exclude: @@ -83,6 +83,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml b/.github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml index 1f6210bb07..aea383e88c 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml @@ -86,6 +86,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml index 2fba3cf75a..595d9776bb 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml @@ -50,7 +50,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net5.0, net461, net48] + framework: [net6.0, net5.0, net461, net48] platform: [x64] configuration: [Release] exclude: @@ -80,6 +80,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml b/.github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml index 1a447a32aa..b153a47ee6 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml @@ -54,7 +54,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net5.0, net461, net48] + framework: [net6.0, net5.0, net461, net48] platform: [x64] configuration: [Release] exclude: @@ -84,6 +84,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml index a36c32b61d..2bbe813c72 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml @@ -51,7 +51,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net5.0, net461, net48] + framework: [net6.0, net5.0, net461, net48] platform: [x64] configuration: [Release] exclude: @@ -81,6 +81,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-Benchmark.yml b/.github/workflows/Lucene-Net-Tests-Benchmark.yml index 783e4fa457..563106caba 100644 --- a/.github/workflows/Lucene-Net-Tests-Benchmark.yml +++ b/.github/workflows/Lucene-Net-Tests-Benchmark.yml @@ -63,7 +63,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net5.0, net461, net48] + framework: [net6.0, net5.0, net461, net48] platform: [x64] configuration: [Release] exclude: @@ -93,6 +93,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-Classification.yml b/.github/workflows/Lucene-Net-Tests-Classification.yml index d2653ffa5d..ba9d164e6f 100644 --- a/.github/workflows/Lucene-Net-Tests-Classification.yml +++ b/.github/workflows/Lucene-Net-Tests-Classification.yml @@ -51,7 +51,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net5.0, net461, net48] + framework: [net6.0, net5.0, net461, net48] platform: [x64] configuration: [Release] exclude: @@ -81,6 +81,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-Cli.yml b/.github/workflows/Lucene-Net-Tests-Cli.yml index 5b466f76b9..722010b658 100644 --- a/.github/workflows/Lucene-Net-Tests-Cli.yml +++ b/.github/workflows/Lucene-Net-Tests-Cli.yml @@ -100,6 +100,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-CodeAnalysis.yml b/.github/workflows/Lucene-Net-Tests-CodeAnalysis.yml index 1ff21a9ff4..731c5be4c8 100644 --- a/.github/workflows/Lucene-Net-Tests-CodeAnalysis.yml +++ b/.github/workflows/Lucene-Net-Tests-CodeAnalysis.yml @@ -79,6 +79,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-Codecs.yml b/.github/workflows/Lucene-Net-Tests-Codecs.yml index 742ea7080f..9941f676f5 100644 --- a/.github/workflows/Lucene-Net-Tests-Codecs.yml +++ b/.github/workflows/Lucene-Net-Tests-Codecs.yml @@ -49,7 +49,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net5.0, net461, net48] + framework: [net6.0, net5.0, net461, net48] platform: [x64] configuration: [Release] exclude: @@ -79,6 +79,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-Demo.yml b/.github/workflows/Lucene-Net-Tests-Demo.yml index 309b905604..ebc2850261 100644 --- a/.github/workflows/Lucene-Net-Tests-Demo.yml +++ b/.github/workflows/Lucene-Net-Tests-Demo.yml @@ -37,6 +37,7 @@ on: # Dependencies - 'src/Lucene.Net/**/*' - 'src/Lucene.Net.Analysis.Common/**/*' + - 'src/Lucene.Net.Codecs/**/*' - 'src/Lucene.Net.Queries/**/*' - 'src/Lucene.Net.Expressions/**/*' - 'src/Lucene.Net.Grouping/**/*' @@ -45,7 +46,6 @@ on: - 'src/Lucene.Net.Sandbox/**/*' - 'src/Lucene.Net.QueryParser/**/*' - 'src/Lucene.Net.Demo/**/*' - - 'src/Lucene.Net.Codecs/**/*' - 'src/Lucene.Net.TestFramework/**/*' - '!**/*.md' @@ -58,7 +58,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net5.0, net461, net48] + framework: [net6.0, net5.0, net461, net48] platform: [x64] configuration: [Release] exclude: @@ -88,6 +88,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-Expressions.yml b/.github/workflows/Lucene-Net-Tests-Expressions.yml index 59070e46ab..4556796961 100644 --- a/.github/workflows/Lucene-Net-Tests-Expressions.yml +++ b/.github/workflows/Lucene-Net-Tests-Expressions.yml @@ -35,10 +35,10 @@ on: # Dependencies - 'src/Lucene.Net/**/*' - - 'src/Lucene.Net.Queries/**/*' - - 'src/Lucene.Net.Expressions/**/*' - 'src/Lucene.Net.Analysis.Common/**/*' - 'src/Lucene.Net.Codecs/**/*' + - 'src/Lucene.Net.Queries/**/*' + - 'src/Lucene.Net.Expressions/**/*' - 'src/Lucene.Net.TestFramework/**/*' - '!**/*.md' @@ -51,7 +51,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net5.0, net461, net48] + framework: [net6.0, net5.0, net461, net48] platform: [x64] configuration: [Release] exclude: @@ -81,6 +81,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-Facet.yml b/.github/workflows/Lucene-Net-Tests-Facet.yml index ed1f5ad4fa..845b253edf 100644 --- a/.github/workflows/Lucene-Net-Tests-Facet.yml +++ b/.github/workflows/Lucene-Net-Tests-Facet.yml @@ -35,12 +35,12 @@ on: # Dependencies - 'src/Lucene.Net/**/*' + - 'src/Lucene.Net.Analysis.Common/**/*' + - 'src/Lucene.Net.Codecs/**/*' - 'src/Lucene.Net.Queries/**/*' - 'src/Lucene.Net.Grouping/**/*' - 'src/Lucene.Net.Join/**/*' - 'src/Lucene.Net.Facet/**/*' - - 'src/Lucene.Net.Analysis.Common/**/*' - - 'src/Lucene.Net.Codecs/**/*' - 'src/Lucene.Net.TestFramework/**/*' - '!**/*.md' @@ -53,7 +53,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net5.0, net461, net48] + framework: [net6.0, net5.0, net461, net48] platform: [x64] configuration: [Release] exclude: @@ -83,6 +83,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-Grouping.yml b/.github/workflows/Lucene-Net-Tests-Grouping.yml index 6bff3c9db9..3a1082effb 100644 --- a/.github/workflows/Lucene-Net-Tests-Grouping.yml +++ b/.github/workflows/Lucene-Net-Tests-Grouping.yml @@ -35,10 +35,10 @@ on: # Dependencies - 'src/Lucene.Net/**/*' - - 'src/Lucene.Net.Queries/**/*' - - 'src/Lucene.Net.Grouping/**/*' - 'src/Lucene.Net.Analysis.Common/**/*' - 'src/Lucene.Net.Codecs/**/*' + - 'src/Lucene.Net.Queries/**/*' + - 'src/Lucene.Net.Grouping/**/*' - 'src/Lucene.Net.TestFramework/**/*' - '!**/*.md' @@ -51,7 +51,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net5.0, net461, net48] + framework: [net6.0, net5.0, net461, net48] platform: [x64] configuration: [Release] exclude: @@ -81,6 +81,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-Highlighter.yml b/.github/workflows/Lucene-Net-Tests-Highlighter.yml index 43a9f1bb3a..0f7f47ba73 100644 --- a/.github/workflows/Lucene-Net-Tests-Highlighter.yml +++ b/.github/workflows/Lucene-Net-Tests-Highlighter.yml @@ -36,11 +36,11 @@ on: # Dependencies - 'src/Lucene.Net/**/*' + - 'src/Lucene.Net.Analysis.Common/**/*' + - 'src/Lucene.Net.Codecs/**/*' - 'src/Lucene.Net.Memory/**/*' - 'src/Lucene.Net.Queries/**/*' - 'src/Lucene.Net.Highlighter/**/*' - - 'src/Lucene.Net.Analysis.Common/**/*' - - 'src/Lucene.Net.Codecs/**/*' - 'src/Lucene.Net.TestFramework/**/*' - '!**/*.md' @@ -53,7 +53,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net5.0, net461, net48] + framework: [net6.0, net5.0, net461, net48] platform: [x64] configuration: [Release] exclude: @@ -83,6 +83,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-ICU.yml b/.github/workflows/Lucene-Net-Tests-ICU.yml index b9836b1676..1289ebb180 100644 --- a/.github/workflows/Lucene-Net-Tests-ICU.yml +++ b/.github/workflows/Lucene-Net-Tests-ICU.yml @@ -36,6 +36,7 @@ on: - 'src/Lucene.Net.Tests.Analysis.Common/Analysis/Th/**/*.cs' - 'src/Lucene.Net.Tests.Analysis.Common/Analysis/Util/TestCharArrayIterator.cs' - 'src/Lucene.Net.Tests.Analysis.Common/Analysis/Util/TestSegmentingTokenizerBase.cs' + - 'src/Lucene.Net.Tests.Analysis.Common/Analysis/Util/BaseTokenStreamFactoryTestCase.cs' - 'src/Lucene.Net.Tests.Analysis.ICU/Analysis/**/*.cs' - 'src/Lucene.Net.Tests.Analysis.ICU/Collation/**/*.cs' - 'src/Lucene.Net.Tests.Highlighter/PostingsHighlight/**/*.cs' @@ -48,13 +49,12 @@ on: # Dependencies - 'src/Lucene.Net/**/*' - 'src/Lucene.Net.Analysis.Common/**/*' + - 'src/Lucene.Net.Codecs/**/*' - 'src/Lucene.Net.Memory/**/*' - 'src/Lucene.Net.Queries/**/*' - 'src/Lucene.Net.Highlighter/**/*' - 'src/dotnet/Lucene.Net.ICU/**/*' - - 'src/Lucene.Net.Codecs/**/*' - 'src/Lucene.Net.TestFramework/**/*' - - 'src/Lucene.Net.Tests.Analysis.Common/**/*' - '!**/*.md' @@ -66,7 +66,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net5.0, net461, net48] + framework: [net6.0, net5.0, net461, net48] platform: [x64] configuration: [Release] exclude: @@ -96,6 +96,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-Join.yml b/.github/workflows/Lucene-Net-Tests-Join.yml index 1f4cfb8296..b74c40f944 100644 --- a/.github/workflows/Lucene-Net-Tests-Join.yml +++ b/.github/workflows/Lucene-Net-Tests-Join.yml @@ -35,11 +35,11 @@ on: # Dependencies - 'src/Lucene.Net/**/*' + - 'src/Lucene.Net.Analysis.Common/**/*' + - 'src/Lucene.Net.Codecs/**/*' - 'src/Lucene.Net.Queries/**/*' - 'src/Lucene.Net.Grouping/**/*' - 'src/Lucene.Net.Join/**/*' - - 'src/Lucene.Net.Analysis.Common/**/*' - - 'src/Lucene.Net.Codecs/**/*' - 'src/Lucene.Net.TestFramework/**/*' - '!**/*.md' @@ -52,7 +52,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net5.0, net461, net48] + framework: [net6.0, net5.0, net461, net48] platform: [x64] configuration: [Release] exclude: @@ -82,6 +82,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-Memory.yml b/.github/workflows/Lucene-Net-Tests-Memory.yml index 9fc87fce0e..90d64b2a72 100644 --- a/.github/workflows/Lucene-Net-Tests-Memory.yml +++ b/.github/workflows/Lucene-Net-Tests-Memory.yml @@ -36,12 +36,12 @@ on: # Dependencies - 'src/Lucene.Net/**/*' - - 'src/Lucene.Net.Memory/**/*' - 'src/Lucene.Net.Analysis.Common/**/*' + - 'src/Lucene.Net.Codecs/**/*' + - 'src/Lucene.Net.Memory/**/*' - 'src/Lucene.Net.Queries/**/*' - 'src/Lucene.Net.Sandbox/**/*' - 'src/Lucene.Net.QueryParser/**/*' - - 'src/Lucene.Net.Codecs/**/*' - 'src/Lucene.Net.TestFramework/**/*' - '!**/*.md' @@ -54,7 +54,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net5.0, net461, net48] + framework: [net6.0, net5.0, net461, net48] platform: [x64] configuration: [Release] exclude: @@ -84,6 +84,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-Misc.yml b/.github/workflows/Lucene-Net-Tests-Misc.yml index a87942c410..b99fe3fe64 100644 --- a/.github/workflows/Lucene-Net-Tests-Misc.yml +++ b/.github/workflows/Lucene-Net-Tests-Misc.yml @@ -35,9 +35,9 @@ on: # Dependencies - 'src/Lucene.Net/**/*' - - 'src/Lucene.Net.Misc/**/*' - 'src/Lucene.Net.Analysis.Common/**/*' - 'src/Lucene.Net.Codecs/**/*' + - 'src/Lucene.Net.Misc/**/*' - 'src/Lucene.Net.TestFramework/**/*' - '!**/*.md' @@ -50,7 +50,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net5.0, net461, net48] + framework: [net6.0, net5.0, net461, net48] platform: [x64] configuration: [Release] exclude: @@ -80,6 +80,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-Queries.yml b/.github/workflows/Lucene-Net-Tests-Queries.yml index 97ddb9dfdc..9ac773776e 100644 --- a/.github/workflows/Lucene-Net-Tests-Queries.yml +++ b/.github/workflows/Lucene-Net-Tests-Queries.yml @@ -35,9 +35,9 @@ on: # Dependencies - 'src/Lucene.Net/**/*' - - 'src/Lucene.Net.Queries/**/*' - 'src/Lucene.Net.Analysis.Common/**/*' - 'src/Lucene.Net.Codecs/**/*' + - 'src/Lucene.Net.Queries/**/*' - 'src/Lucene.Net.TestFramework/**/*' - '!**/*.md' @@ -50,7 +50,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net5.0, net461, net48] + framework: [net6.0, net5.0, net461, net48] platform: [x64] configuration: [Release] exclude: @@ -80,6 +80,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-QueryParser.yml b/.github/workflows/Lucene-Net-Tests-QueryParser.yml index 24447a87c2..7d1614b993 100644 --- a/.github/workflows/Lucene-Net-Tests-QueryParser.yml +++ b/.github/workflows/Lucene-Net-Tests-QueryParser.yml @@ -39,11 +39,11 @@ on: # Dependencies - 'src/Lucene.Net/**/*' + - 'src/Lucene.Net.Codecs/**/*' - 'src/Lucene.Net.Analysis.Common/**/*' - 'src/Lucene.Net.Queries/**/*' - 'src/Lucene.Net.Sandbox/**/*' - 'src/Lucene.Net.QueryParser/**/*' - - 'src/Lucene.Net.Codecs/**/*' - 'src/Lucene.Net.TestFramework/**/*' - '!**/*.md' @@ -56,7 +56,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net5.0, net461, net48] + framework: [net6.0, net5.0, net461, net48] platform: [x64] configuration: [Release] exclude: @@ -86,6 +86,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-Replicator.yml b/.github/workflows/Lucene-Net-Tests-Replicator.yml index 15085bfe7e..f12abcf9e6 100644 --- a/.github/workflows/Lucene-Net-Tests-Replicator.yml +++ b/.github/workflows/Lucene-Net-Tests-Replicator.yml @@ -35,14 +35,14 @@ on: # Dependencies - 'src/Lucene.Net/**/*' + - 'src/Lucene.Net.Analysis.Common/**/*' + - 'src/Lucene.Net.Codecs/**/*' - 'src/Lucene.Net.Queries/**/*' - 'src/Lucene.Net.Grouping/**/*' - 'src/Lucene.Net.Join/**/*' - 'src/Lucene.Net.Facet/**/*' - 'src/Lucene.Net.Replicator/**/*' - 'src/dotnet/Lucene.Net.Replicator.AspNetCore/**/*' - - 'src/Lucene.Net.Analysis.Common/**/*' - - 'src/Lucene.Net.Codecs/**/*' - 'src/Lucene.Net.TestFramework/**/*' - '!**/*.md' @@ -55,7 +55,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net5.0, net461, net48] + framework: [net6.0, net5.0, net461, net48] platform: [x64] configuration: [Release] exclude: @@ -85,6 +85,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-Sandbox.yml b/.github/workflows/Lucene-Net-Tests-Sandbox.yml index a00a9af96f..89dce7cfb6 100644 --- a/.github/workflows/Lucene-Net-Tests-Sandbox.yml +++ b/.github/workflows/Lucene-Net-Tests-Sandbox.yml @@ -36,9 +36,9 @@ on: # Dependencies - 'src/Lucene.Net/**/*' + - 'src/Lucene.Net.Analysis.Common/**/*' - 'src/Lucene.Net.Codecs/**/*' - 'src/Lucene.Net.Sandbox/**/*' - - 'src/Lucene.Net.Analysis.Common/**/*' - 'src/Lucene.Net.TestFramework/**/*' - '!**/*.md' @@ -51,7 +51,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net5.0, net461, net48] + framework: [net6.0, net5.0, net461, net48] platform: [x64] configuration: [Release] exclude: @@ -81,6 +81,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-Spatial.yml b/.github/workflows/Lucene-Net-Tests-Spatial.yml index 4538a60019..8b862e398a 100644 --- a/.github/workflows/Lucene-Net-Tests-Spatial.yml +++ b/.github/workflows/Lucene-Net-Tests-Spatial.yml @@ -36,10 +36,10 @@ on: # Dependencies - 'src/Lucene.Net/**/*' - - 'src/Lucene.Net.Queries/**/*' - - 'src/Lucene.Net.Spatial/**/*' - 'src/Lucene.Net.Analysis.Common/**/*' - 'src/Lucene.Net.Codecs/**/*' + - 'src/Lucene.Net.Queries/**/*' + - 'src/Lucene.Net.Spatial/**/*' - 'src/Lucene.Net.TestFramework/**/*' - '!**/*.md' @@ -52,7 +52,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net5.0, net461, net48] + framework: [net6.0, net5.0, net461, net48] platform: [x64] configuration: [Release] exclude: @@ -82,6 +82,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-Suggest.yml b/.github/workflows/Lucene-Net-Tests-Suggest.yml index 43b01ae17a..08a80ec29f 100644 --- a/.github/workflows/Lucene-Net-Tests-Suggest.yml +++ b/.github/workflows/Lucene-Net-Tests-Suggest.yml @@ -37,10 +37,10 @@ on: # Dependencies - 'src/Lucene.Net/**/*' - 'src/Lucene.Net.Analysis.Common/**/*' - - 'src/Lucene.Net.Queries/**/*' + - 'src/Lucene.Net.Codecs/**/*' - 'src/Lucene.Net.Misc/**/*' + - 'src/Lucene.Net.Queries/**/*' - 'src/Lucene.Net.Suggest/**/*' - - 'src/Lucene.Net.Codecs/**/*' - 'src/Lucene.Net.TestFramework/**/*' - '!**/*.md' @@ -53,7 +53,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net5.0, net461, net48] + framework: [net6.0, net5.0, net461, net48] platform: [x64] configuration: [Release] exclude: @@ -83,6 +83,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-TestFramework-DependencyInjection.yml b/.github/workflows/Lucene-Net-Tests-TestFramework-DependencyInjection.yml index 2effe4d3db..65679cd989 100644 --- a/.github/workflows/Lucene-Net-Tests-TestFramework-DependencyInjection.yml +++ b/.github/workflows/Lucene-Net-Tests-TestFramework-DependencyInjection.yml @@ -49,7 +49,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net5.0, net461, net48] + framework: [net6.0, net5.0, net461, net48] platform: [x64] configuration: [Release] exclude: @@ -79,6 +79,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-TestFramework.yml b/.github/workflows/Lucene-Net-Tests-TestFramework.yml index 56da0f0a7b..02b7913452 100644 --- a/.github/workflows/Lucene-Net-Tests-TestFramework.yml +++ b/.github/workflows/Lucene-Net-Tests-TestFramework.yml @@ -51,7 +51,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net5.0, net461, net48] + framework: [net6.0, net5.0, net461, net48] platform: [x64] configuration: [Release] exclude: @@ -81,6 +81,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-_A-D.yml b/.github/workflows/Lucene-Net-Tests-_A-D.yml index ed3de18500..69205e31f7 100644 --- a/.github/workflows/Lucene-Net-Tests-_A-D.yml +++ b/.github/workflows/Lucene-Net-Tests-_A-D.yml @@ -40,12 +40,12 @@ on: # Dependencies - 'src/Lucene.Net/**/*' + - 'src/Lucene.Net.Analysis.Common/**/*' - 'src/Lucene.Net.Codecs/**/*' - 'src/Lucene.Net.Queries/**/*' - 'src/Lucene.Net.Grouping/**/*' - 'src/Lucene.Net.Join/**/*' - 'src/Lucene.Net.Facet/**/*' - - 'src/Lucene.Net.Analysis.Common/**/*' - 'src/Lucene.Net.Sandbox/**/*' - 'src/Lucene.Net.QueryParser/**/*' - 'src/Lucene.Net.TestFramework/**/*' @@ -60,7 +60,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net5.0, net461, net48] + framework: [net6.0, net5.0, net461, net48] platform: [x64] configuration: [Release] exclude: @@ -90,6 +90,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-_E-I.yml b/.github/workflows/Lucene-Net-Tests-_E-I.yml index 658e9fc76b..3096a4ecb2 100644 --- a/.github/workflows/Lucene-Net-Tests-_E-I.yml +++ b/.github/workflows/Lucene-Net-Tests-_E-I.yml @@ -50,12 +50,12 @@ on: # Dependencies - 'src/Lucene.Net/**/*' + - 'src/Lucene.Net.Analysis.Common/**/*' - 'src/Lucene.Net.Codecs/**/*' - 'src/Lucene.Net.Queries/**/*' - 'src/Lucene.Net.Grouping/**/*' - 'src/Lucene.Net.Join/**/*' - 'src/Lucene.Net.Facet/**/*' - - 'src/Lucene.Net.Analysis.Common/**/*' - 'src/Lucene.Net.Sandbox/**/*' - 'src/Lucene.Net.QueryParser/**/*' - 'src/Lucene.Net.TestFramework/**/*' @@ -70,7 +70,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net5.0, net461, net48] + framework: [net6.0, net5.0, net461, net48] platform: [x64] configuration: [Release] exclude: @@ -100,6 +100,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-_I-J.yml b/.github/workflows/Lucene-Net-Tests-_I-J.yml index ad9bce4b7e..45af465fb7 100644 --- a/.github/workflows/Lucene-Net-Tests-_I-J.yml +++ b/.github/workflows/Lucene-Net-Tests-_I-J.yml @@ -55,12 +55,12 @@ on: # Dependencies - 'src/Lucene.Net/**/*' + - 'src/Lucene.Net.Analysis.Common/**/*' - 'src/Lucene.Net.Codecs/**/*' - 'src/Lucene.Net.Queries/**/*' - 'src/Lucene.Net.Grouping/**/*' - 'src/Lucene.Net.Join/**/*' - 'src/Lucene.Net.Facet/**/*' - - 'src/Lucene.Net.Analysis.Common/**/*' - 'src/Lucene.Net.Sandbox/**/*' - 'src/Lucene.Net.QueryParser/**/*' - 'src/Lucene.Net.TestFramework/**/*' @@ -75,7 +75,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net5.0, net461, net48] + framework: [net6.0, net5.0, net461, net48] platform: [x64] configuration: [Release] exclude: @@ -105,6 +105,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-_J-S.yml b/.github/workflows/Lucene-Net-Tests-_J-S.yml index 49f6aa8190..717932fbd1 100644 --- a/.github/workflows/Lucene-Net-Tests-_J-S.yml +++ b/.github/workflows/Lucene-Net-Tests-_J-S.yml @@ -42,12 +42,12 @@ on: # Dependencies - 'src/Lucene.Net/**/*' + - 'src/Lucene.Net.Analysis.Common/**/*' - 'src/Lucene.Net.Codecs/**/*' - 'src/Lucene.Net.Queries/**/*' - 'src/Lucene.Net.Grouping/**/*' - 'src/Lucene.Net.Join/**/*' - 'src/Lucene.Net.Facet/**/*' - - 'src/Lucene.Net.Analysis.Common/**/*' - 'src/Lucene.Net.Sandbox/**/*' - 'src/Lucene.Net.QueryParser/**/*' - 'src/Lucene.Net.TestFramework/**/*' @@ -62,7 +62,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net5.0, net461, net48] + framework: [net6.0, net5.0, net461, net48] platform: [x64] configuration: [Release] exclude: @@ -92,6 +92,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) diff --git a/.github/workflows/Lucene-Net-Tests-_T-Z.yml b/.github/workflows/Lucene-Net-Tests-_T-Z.yml index 2cc13fb001..259fcd327c 100644 --- a/.github/workflows/Lucene-Net-Tests-_T-Z.yml +++ b/.github/workflows/Lucene-Net-Tests-_T-Z.yml @@ -37,12 +37,12 @@ on: # Dependencies - 'src/Lucene.Net/**/*' + - 'src/Lucene.Net.Analysis.Common/**/*' - 'src/Lucene.Net.Codecs/**/*' - 'src/Lucene.Net.Queries/**/*' - 'src/Lucene.Net.Grouping/**/*' - 'src/Lucene.Net.Join/**/*' - 'src/Lucene.Net.Facet/**/*' - - 'src/Lucene.Net.Analysis.Common/**/*' - 'src/Lucene.Net.Sandbox/**/*' - 'src/Lucene.Net.QueryParser/**/*' - 'src/Lucene.Net.TestFramework/**/*' @@ -57,7 +57,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net5.0, net461, net48] + framework: [net6.0, net5.0, net461, net48] platform: [x64] configuration: [Release] exclude: @@ -87,6 +87,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '5.0.400' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.100-rc.1.21463.6' - run: | $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) From 79bdf7dbe08cff6e12d856edc409bf19edd22e69 Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Sun, 26 Sep 2021 19:06:07 +0700 Subject: [PATCH 4/4] no-op change to launch GitHub Actions --- src/Lucene.Net/Analysis/Analyzer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Lucene.Net/Analysis/Analyzer.cs b/src/Lucene.Net/Analysis/Analyzer.cs index ca455926fc..f0e07ff4cf 100644 --- a/src/Lucene.Net/Analysis/Analyzer.cs +++ b/src/Lucene.Net/Analysis/Analyzer.cs @@ -631,4 +631,4 @@ protected internal static void SetStoredValue(Analyzer analyzer, object storedVa analyzer.storedValue.Value = storedValue; } } -} \ No newline at end of file +}