Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ steps:
testResultsArtifactName: '${{ parameters.testResultsArtifactName }}'
testResultsFileName: '${{ parameters.testResultsFileName }}'

# Special case: Only supports net8.0, net6.0 and net48
# Special case: Only supports net8.0 and net48

- template: publish-test-results.yml
parameters:
Expand All @@ -104,16 +104,6 @@ steps:
testResultsArtifactName: '${{ parameters.testResultsArtifactName }}'
testResultsFileName: '${{ parameters.testResultsFileName }}'

- template: publish-test-results.yml
parameters:
testProjectName: 'Lucene.Net.Tests.Analysis.OpenNLP'
framework: 'net6.0' # Since condtions are not supported for templates, we check for the file existence within publish-test-results.yml
vsTestPlatform: '${{ parameters.vsTestPlatform }}'
osName: '${{ parameters.osName }}'
testResultsFormat: '${{ parameters.testResultsFormat }}'
testResultsArtifactName: '${{ parameters.testResultsArtifactName }}'
testResultsFileName: '${{ parameters.testResultsFileName }}'

- template: publish-test-results.yml
parameters:
testProjectName: 'Lucene.Net.Tests.Analysis.OpenNLP'
Expand Down
22 changes: 5 additions & 17 deletions .github/workflows/Generate-TestWorkflows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,13 @@
The SDK version of .NET 8.x to install on the build agent to be used for building and
testing. This SDK is always installed on the build agent. The default is 8.0.x.

.PARAMETER DotNet6SDKVersion
The SDK version of .NET 6.x to install on the build agent to be used for building and
testing. This SDK is always installed on the build agent. The default is 6.0.x.
#>
param(
[string]$OutputDirectory = $PSScriptRoot,

[string]$RepoRoot = (Split-Path (Split-Path $PSScriptRoot)),

[string[]]$TestFrameworks = @('net9.0','net8.0','net6.0','net472','net48'), # targets under test: net8.0, net8.0, netstandard2.1, netstandard2.0, net462
[string[]]$TestFrameworks = @('net9.0','net8.0','net472','net48'), # targets under test: net8.0, net8.0, netstandard2.0, net462

[string[]]$OperatingSystems = @('windows-latest', 'ubuntu-latest'),

Expand All @@ -78,9 +75,7 @@ param(

[string]$DotNet9SDKVersion = '9.0.x',

[string]$DotNet8SDKVersion = '8.0.x',

[string]$DotNet6SDKVersion = '6.0.x'
[string]$DotNet8SDKVersion = '8.0.x'
)


Expand Down Expand Up @@ -161,8 +156,7 @@ function Write-TestWorkflow(
[string[]]$TestPlatforms = @('x64'),
[string[]]$OperatingSystems = @('windows-latest', 'ubuntu-latest', 'macos-latest'),
[string]$DotNet9SDKVersion = $DotNet9SDKVersion,
[string]$DotNet8SDKVersion = $DotNet8SDKVersion,
[string]$DotNet6SDKVersion = $DotNet6SDKVersion) {
[string]$DotNet8SDKVersion = $DotNet8SDKVersion) {

$dependencies = New-Object System.Collections.Generic.HashSet[string]
Get-ProjectDependencies $ProjectPath $RelativeRoot $dependencies
Expand Down Expand Up @@ -280,12 +274,6 @@ jobs:
- name: Checkout Source Code
uses: actions/checkout@v5

- name: Setup .NET 6 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '$DotNet6SDKVersion'
if: `${{ startswith(matrix.framework, 'net6.') }}

- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
Expand Down Expand Up @@ -375,7 +363,7 @@ try {
Pop-Location
}

#Write-TestWorkflow -OutputDirectory $OutputDirectory -ProjectPath $projectPath -RelativeRoot $repoRoot -TestFrameworks @('net6.0') -OperatingSystems $OperatingSystems -TestPlatforms $TestPlatforms -Configurations $Configurations -DotNet8SDKVersion $DotNet8SDKVersion -DotNet6SDKVersion $DotNet6SDKVersion
#Write-TestWorkflow -OutputDirectory $OutputDirectory -ProjectPath $projectPath -RelativeRoot $repoRoot -TestFrameworks @('net6.0') -OperatingSystems $OperatingSystems -TestPlatforms $TestPlatforms -Configurations $Configurations -DotNet8SDKVersion $DotNet8SDKVersion

#Write-Host $TestProjects

Expand All @@ -402,5 +390,5 @@ foreach ($testProject in $TestProjects) {
Write-Host "Frameworks To Test for ${projectName}: $($frameworks -join ';')" -ForegroundColor Cyan

#Write-Host "Project: $projectName"
Write-TestWorkflow -OutputDirectory $OutputDirectory -ProjectPath $testProject -RelativeRoot $RepoRoot -TestFrameworks $frameworks -OperatingSystems $OperatingSystems -TestPlatforms $TestPlatforms -Configurations $Configurations -DotNet8SDKVersion $DotNet8SDKVersion -DotNet6SDKVersion $DotNet6SDKVersion
Write-TestWorkflow -OutputDirectory $OutputDirectory -ProjectPath $testProject -RelativeRoot $RepoRoot -TestFrameworks $frameworks -OperatingSystems $OperatingSystems -TestPlatforms $TestPlatforms -Configurations $Configurations -DotNet8SDKVersion $DotNet8SDKVersion
}
10 changes: 2 additions & 8 deletions .github/workflows/Lucene-Net-Tests-AllProjects.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
####################################################################################
####################################################################################
# DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
####################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net9.0, net8.0, net6.0, net48, net472]
framework: [net9.0, net8.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
Expand All @@ -99,12 +99,6 @@ jobs:
- name: Checkout Source Code
uses: actions/checkout@v5

- name: Setup .NET 6 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '6.0.x'
if: ${{ startswith(matrix.framework, 'net6.') }}

- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/Lucene-Net-Tests-Analysis-Common.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
####################################################################################
####################################################################################
# DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
####################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net9.0, net8.0, net6.0, net48, net472]
framework: [net9.0, net8.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
Expand All @@ -83,12 +83,6 @@ jobs:
- name: Checkout Source Code
uses: actions/checkout@v5

- name: Setup .NET 6 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '6.0.x'
if: ${{ startswith(matrix.framework, 'net6.') }}

- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
####################################################################################
####################################################################################
# DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
####################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net9.0, net8.0, net6.0, net48, net472]
framework: [net9.0, net8.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
Expand All @@ -80,12 +80,6 @@ jobs:
- name: Checkout Source Code
uses: actions/checkout@v5

- name: Setup .NET 6 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '6.0.x'
if: ${{ startswith(matrix.framework, 'net6.') }}

- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
####################################################################################
####################################################################################
# DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
####################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net9.0, net8.0, net6.0, net48, net472]
framework: [net9.0, net8.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
Expand All @@ -80,12 +80,6 @@ jobs:
- name: Checkout Source Code
uses: actions/checkout@v5

- name: Setup .NET 6 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '6.0.x'
if: ${{ startswith(matrix.framework, 'net6.') }}

- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
####################################################################################
####################################################################################
# DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
####################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
Expand Down Expand Up @@ -83,12 +83,6 @@ jobs:
- name: Checkout Source Code
uses: actions/checkout@v5

- name: Setup .NET 6 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '6.0.x'
if: ${{ startswith(matrix.framework, 'net6.') }}

- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
####################################################################################
####################################################################################
# DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
####################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net9.0, net8.0, net6.0, net48, net472]
framework: [net9.0, net8.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
Expand All @@ -77,12 +77,6 @@ jobs:
- name: Checkout Source Code
uses: actions/checkout@v5

- name: Setup .NET 6 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '6.0.x'
if: ${{ startswith(matrix.framework, 'net6.') }}

- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
####################################################################################
####################################################################################
# DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
####################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net9.0, net8.0, net6.0, net48, net472]
framework: [net9.0, net8.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
Expand All @@ -81,12 +81,6 @@ jobs:
- name: Checkout Source Code
uses: actions/checkout@v5

- name: Setup .NET 6 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '6.0.x'
if: ${{ startswith(matrix.framework, 'net6.') }}

- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
####################################################################################
####################################################################################
# DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
####################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net9.0, net8.0, net6.0, net48, net472]
framework: [net9.0, net8.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
Expand All @@ -78,12 +78,6 @@ jobs:
- name: Checkout Source Code
uses: actions/checkout@v5

- name: Setup .NET 6 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '6.0.x'
if: ${{ startswith(matrix.framework, 'net6.') }}

- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/Lucene-Net-Tests-Benchmark.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
####################################################################################
####################################################################################
# DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
####################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net9.0, net8.0, net6.0, net48, net472]
framework: [net9.0, net8.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
Expand All @@ -90,12 +90,6 @@ jobs:
- name: Checkout Source Code
uses: actions/checkout@v5

- name: Setup .NET 6 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '6.0.x'
if: ${{ startswith(matrix.framework, 'net6.') }}

- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/Lucene-Net-Tests-Classification.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
####################################################################################
####################################################################################
# DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
####################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net9.0, net8.0, net6.0, net48, net472]
framework: [net9.0, net8.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
Expand All @@ -78,12 +78,6 @@ jobs:
- name: Checkout Source Code
uses: actions/checkout@v5

- name: Setup .NET 6 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '6.0.x'
if: ${{ startswith(matrix.framework, 'net6.') }}

- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/Lucene-Net-Tests-Cli.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
####################################################################################
####################################################################################
# DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
####################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
Expand Down Expand Up @@ -98,12 +98,6 @@ jobs:
- name: Checkout Source Code
uses: actions/checkout@v5

- name: Setup .NET 6 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '6.0.x'
if: ${{ startswith(matrix.framework, 'net6.') }}

- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
Expand Down
Loading
Loading