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 launch GitHub Actions #11

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
17 changes: 13 additions & 4 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','net461','net48').
@('net6.0', 'net5.0','net461','net48').

.PARAMETER OperatingSystems
A string array of Github Actions operating system monikers to run the tests on.
Expand All @@ -65,14 +65,16 @@ 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'),

[string[]]$TestPlatforms = @('x64'),

[string[]]$Configurations = @('Release'),

[string]$DotNet6SDKVersion = '6.0.100-rc.1.21463.6',

[string]$DotNet5SDKVersion = '5.0.400',

[string]$DotNetCore3SDKVersion = '3.1.412'
Expand Down Expand Up @@ -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) {

Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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

Expand All @@ -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
}
8 changes: 7 additions & 1 deletion .github/workflows/Lucene-Net-Tests-AllProjects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/Lucene-Net-Tests-Analysis-Common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/Lucene-Net-Tests-Benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/Lucene-Net-Tests-Classification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/Lucene-Net-Tests-Cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/Lucene-Net-Tests-CodeAnalysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/Lucene-Net-Tests-Codecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/Lucene-Net-Tests-Demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**/*'
Expand All @@ -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'
Expand All @@ -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:
Expand Down Expand Up @@ -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)
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/Lucene-Net-Tests-Expressions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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:
Expand Down Expand Up @@ -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)
Expand Down
Loading