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 test GitHub Actions #8

Open
wants to merge 5 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
9 changes: 3 additions & 6 deletions .github/workflows/Generate-TestWorkflows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ function Get-ProjectDependencies([string]$ProjectPath, [string]$RelativeRoot, [S
$rootPath = [System.IO.Path]::GetDirectoryName($resolvedProjectPath)
[xml]$project = Get-Content $resolvedProjectPath
foreach ($name in $project.SelectNodes("//Project/ItemGroup/ProjectReference") | ForEach-Object { $_.Include -split ';'}) {
#Write-Host "$rootPath"
#Write-Host "$name"
#Write-Host [System.IO.Path]::Combine($rootPath, $name)
$dependencyFullPath = [System.IO.Path]::GetFullPath([System.IO.Path]::Combine($rootPath, $name))
Get-ProjectDependencies $dependencyFullPath $RelativeRoot $Result
$dependency = Resolve-RelativePath $RelativeRoot $dependencyFullPath
Expand Down Expand Up @@ -269,9 +266,9 @@ jobs:
path: '`${{github.workspace}}/`${{env.test_results_artifact_name}}'
"

# GitHub Actions does not support filenames with "." in them, so replace
# with "-"
$projectFileName = $projectName -replace '\.', '-'
# GitHub Actions does not support filenames with "." or "_" in them, so replace
# with "-" and "" respectively
$projectFileName = $projectName -replace '\.', '-' -replace '_', ''
$FilePath = "$OutputDirectory/$projectFileName.yml"

#$dir = [System.IO.Path]::GetDirectoryName($File)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ on:
workflow_dispatch:
pull_request:
paths:
- 'src/Lucene.Net.Tests._A-D/**/*'
- 'src/Lucene.Net.Tests.Core.A-D/**/*'
- 'build/Dependencies.props'
- 'build/TestReferences.Common.*'
- 'TestTargetFrameworks.*'
- '*.sln'
- 'src/Lucene.Net.Tests._A-D/Directory.Build.*'
- 'src/Lucene.Net.Tests.Core.A-D/Directory.Build.*'
- 'src/Directory.Build.*'
- 'Directory.Build.*'

Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
- os: macos-latest
framework: net48
env:
project_path: './src/Lucene.Net.Tests._A-D/Lucene.Net.Tests._A-D.csproj'
project_path: './src/Lucene.Net.Tests.Core.A-D/Lucene.Net.Tests._A-D.csproj'
trx_file_name: 'TestResults.trx'
md_file_name: 'TestResults.md' # Report file name for LiquidTestReports.Markdown

Expand Down
2 changes: 1 addition & 1 deletion Lucene.Net.sln
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Lucene.Net.Tests.ICU", "src
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Lucene.Net.Tests.Cli", "src\dotnet\tools\Lucene.Net.Tests.Cli\Lucene.Net.Tests.Cli.csproj", "{1F5574FE-19F7-4F10-9B88-76A938621F5B}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Lucene.Net.Tests._A-D", "src\Lucene.Net.Tests._A-D\Lucene.Net.Tests._A-D.csproj", "{86FADACC-57EC-4AA3-8BBE-C6ED526EE596}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Lucene.Net.Tests._A-D", "src\Lucene.Net.Tests.Core.A-D\Lucene.Net.Tests._A-D.csproj", "{86FADACC-57EC-4AA3-8BBE-C6ED526EE596}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Lucene.Net.Tests._E-I", "src\Lucene.Net.Tests._E-I\Lucene.Net.Tests._E-I.csproj", "{8251BB22-EDA9-4850-A9B7-259C5B171040}"
EndProject
Expand Down
4 changes: 2 additions & 2 deletions src/Lucene.Net.Tests/TestDemo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Lucene.Net.Search;
using Lucene.Net.Search;
using NUnit.Framework;
using Assert = Lucene.Net.TestFramework.Assert;

Expand Down Expand Up @@ -81,4 +81,4 @@ public virtual void TestDemo()
Assert.AreEqual(1, isearcher.Search(phraseQuery, null, 1).TotalHits);
}
}
}
}