Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No-op change to fire GitHub Actions #10

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
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
34 changes: 12 additions & 22 deletions .github/workflows/Generate-TestWorkflows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

.PARAMETER TestFrameworks
A string array of Dotnet target framework monikers to run the tests on. The default is
@('net5.0','netcoreapp2.1','net48').
@('net5.0','net461','net48').

.PARAMETER OperatingSystems
A string array of Github Actions operating system monikers to run the tests on.
Expand All @@ -59,18 +59,13 @@
The SDK version of .NET Core 3.x to install on the build agent to be used for building and
testing. This SDK is only installed on the build agent when targeting .NET Core 3.x.
The default is 3.1.412.

.PARAMETER DotNetCore2SDKVersion
The SDK version of .NET Core 2.x to install on the build agent to be used for building and
testing. This SDK is only installed on the build agent when targeting .NET Core 2.x.
The default is 2.1.817.
#>
param(
[string]$OutputDirectory = $PSScriptRoot,

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

[string[]]$TestFrameworks = @('net5.0','netcoreapp2.1','net48'),
[string[]]$TestFrameworks = @('net5.0','net461','net48'), # targets under test: netstanrd2.1, netstanard2.0, net45

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

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

[string]$DotNet5SDKVersion = '5.0.400',

[string]$DotNetCore3SDKVersion = '3.1.412',

[string]$DotNetCore2SDKVersion = '2.1.817'
[string]$DotNetCore3SDKVersion = '3.1.412'
)


Expand Down Expand Up @@ -163,8 +156,7 @@ function Write-TestWorkflow(
[string[]]$TestPlatforms = @('x64'),
[string[]]$OperatingSystems = @('windows-latest', 'ubuntu-latest', 'macos-latest'),
[string]$DotNet5SDKVersion = $DotNet5SDKVersion,
[string]$DotNetCore3SDKVersion = $DotNetCore3SDKVersion,
[string]$DotNetCore2SDKVersion = $DotNetCore2SDKVersion) {
[string]$DotNetCore3SDKVersion = $DotNetCore3SDKVersion) {

$dependencies = New-Object System.Collections.Generic.HashSet[string]
Get-ProjectDependencies $ProjectPath $RelativeRoot $dependencies
Expand Down Expand Up @@ -247,8 +239,12 @@ jobs:
exclude:
- os: ubuntu-latest
framework: net48
- os: ubuntu-latest
framework: net461
- os: macos-latest
framework: net48
- os: macos-latest
framework: net461
env:
project_path: '$projectRelativePath'
trx_file_name: 'TestResults.trx'
Expand All @@ -263,12 +259,6 @@ jobs:
dotnet-version: '$DotNetCore3SDKVersion'
if: `${{ startswith(matrix.framework, 'netcoreapp3.') }}

- name: Setup .NET 2.1 SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '$DotNetCore2SDKVersion'
if: `${{ startswith(matrix.framework, 'netcoreapp2.') }}

- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
Expand Down Expand Up @@ -317,17 +307,17 @@ 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 -DotNetCore2SDKVersion $DotNetCore2SDKVersion
#Write-TestWorkflow -OutputDirectory $OutputDirectory -ProjectPath $projectPath -RelativeRoot $repoRoot -TestFrameworks @('net5.0','netcoreapp3.1') -OperatingSystems $OperatingSystems -TestPlatforms $TestPlatforms -Configurations $Configurations -DotNet5SDKVersion $DotNet5SDKVersion -DotNetCore3SDKVersion $DotNetCore3SDKVersion

#Write-Host $TestProjects

foreach ($testProject in $TestProjects) {
$projectName = [System.IO.Path]::GetFileNameWithoutExtension($testProject)
[string[]]$frameworks = $TestFrameworks

# Special case - CodeAnalysis only supports .NET Core 2.1 for testing
# Special case - CodeAnalysis only supports .NET 5.0 for testing
if ($projectName.Contains("Tests.CodeAnalysis")) {
$frameworks = @('netcoreapp2.1')
$frameworks = @('net5.0')
}

# Special case - our CLI tool only supports .NET Core 3.1
Expand All @@ -341,5 +331,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 -DotNetCore2SDKVersion $DotNetCore2SDKVersion
Write-TestWorkflow -OutputDirectory $OutputDirectory -ProjectPath $testProject -RelativeRoot $RepoRoot -TestFrameworks $frameworks -OperatingSystems $OperatingSystems -TestPlatforms $TestPlatforms -Configurations $Configurations -DotNet5SDKVersion $DotNet5SDKVersion -DotNetCore3SDKVersion $DotNetCore3SDKVersion
}
12 changes: 5 additions & 7 deletions .github/workflows/Lucene-Net-Tests-AllProjects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net5.0, netcoreapp2.1, net48]
framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
- os: ubuntu-latest
framework: net461
- os: macos-latest
framework: net48
- os: macos-latest
framework: net461
env:
project_path: './src/Lucene.Net.Tests.AllProjects/Lucene.Net.Tests.AllProjects.csproj'
trx_file_name: 'TestResults.trx'
Expand All @@ -94,12 +98,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}

- name: Setup .NET 2.1 SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '2.1.817'
if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}

- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/Lucene-Net-Tests-Analysis-Common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net5.0, netcoreapp2.1, net48]
framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
- os: ubuntu-latest
framework: net461
- os: macos-latest
framework: net48
- os: macos-latest
framework: net461
env:
project_path: './src/Lucene.Net.Tests.Analysis.Common/Lucene.Net.Tests.Analysis.Common.csproj'
trx_file_name: 'TestResults.trx'
Expand All @@ -78,12 +82,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}

- name: Setup .NET 2.1 SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '2.1.817'
if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}

- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net5.0, netcoreapp2.1, net48]
framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
- os: ubuntu-latest
framework: net461
- os: macos-latest
framework: net48
- os: macos-latest
framework: net461
env:
project_path: './src/Lucene.Net.Tests.Analysis.Kuromoji/Lucene.Net.Tests.Analysis.Kuromoji.csproj'
trx_file_name: 'TestResults.trx'
Expand All @@ -75,12 +79,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}

- name: Setup .NET 2.1 SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '2.1.817'
if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}

- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net5.0, netcoreapp2.1, net48]
framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
- os: ubuntu-latest
framework: net461
- os: macos-latest
framework: net48
- os: macos-latest
framework: net461
env:
project_path: './src/Lucene.Net.Tests.Analysis.Morfologik/Lucene.Net.Tests.Analysis.Morfologik.csproj'
trx_file_name: 'TestResults.trx'
Expand All @@ -75,12 +79,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}

- name: Setup .NET 2.1 SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '2.1.817'
if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}

- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,12 @@ jobs:
exclude:
- os: ubuntu-latest
framework: net48
- os: ubuntu-latest
framework: net461
- os: macos-latest
framework: net48
- os: macos-latest
framework: net461
env:
project_path: './src/Lucene.Net.Tests.Analysis.OpenNLP/Lucene.Net.Tests.Analysis.OpenNLP.csproj'
trx_file_name: 'TestResults.trx'
Expand All @@ -78,12 +82,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}

- name: Setup .NET 2.1 SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '2.1.817'
if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}

- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net5.0, netcoreapp2.1, net48]
framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
- os: ubuntu-latest
framework: net461
- os: macos-latest
framework: net48
- os: macos-latest
framework: net461
env:
project_path: './src/Lucene.Net.Tests.Analysis.Phonetic/Lucene.Net.Tests.Analysis.Phonetic.csproj'
trx_file_name: 'TestResults.trx'
Expand All @@ -72,12 +76,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}

- name: Setup .NET 2.1 SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '2.1.817'
if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}

- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net5.0, netcoreapp2.1, net48]
framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
- os: ubuntu-latest
framework: net461
- os: macos-latest
framework: net48
- os: macos-latest
framework: net461
env:
project_path: './src/Lucene.Net.Tests.Analysis.SmartCn/Lucene.Net.Tests.Analysis.SmartCn.csproj'
trx_file_name: 'TestResults.trx'
Expand All @@ -76,12 +80,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}

- name: Setup .NET 2.1 SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '2.1.817'
if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}

- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net5.0, netcoreapp2.1, net48]
framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
- os: ubuntu-latest
framework: net461
- os: macos-latest
framework: net48
- os: macos-latest
framework: net461
env:
project_path: './src/Lucene.Net.Tests.Analysis.Stempel/Lucene.Net.Tests.Analysis.Stempel.csproj'
trx_file_name: 'TestResults.trx'
Expand All @@ -73,12 +77,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}

- name: Setup .NET 2.1 SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '2.1.817'
if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}

- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/Lucene-Net-Tests-Benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net5.0, netcoreapp2.1, net48]
framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
- os: ubuntu-latest
framework: net461
- os: macos-latest
framework: net48
- os: macos-latest
framework: net461
env:
project_path: './src/Lucene.Net.Tests.Benchmark/Lucene.Net.Tests.Benchmark.csproj'
trx_file_name: 'TestResults.trx'
Expand All @@ -85,12 +89,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}

- name: Setup .NET 2.1 SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '2.1.817'
if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}

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