diff --git a/.github/workflows/richnav-all.yml b/.github/workflows/richnav-all.yml index df447e0..fe09145 100644 --- a/.github/workflows/richnav-all.yml +++ b/.github/workflows/richnav-all.yml @@ -1,4 +1,5 @@ -### This template is meant to be used by a .NET Core repository running RichNav +### This template is meant to be used by a multi-language repo running RichNav. +### It provides rich navigation for C#, JavaScript, TypeScript, C++, and Java ### Please fill anything marked above with a "# **** #" comment with the value appropriate for your repository name: Rich Code Navigation @@ -6,7 +7,8 @@ name: Rich Code Navigation on: pull_request: push: - branches: [ master ] + # **** Add any the name of your default branch, or any branch you want indexed on every push **** # + branches: [ main ] jobs: richnav: @@ -16,7 +18,7 @@ jobs: steps: - uses: actions/checkout@v2 - # **** Please change 'dotnet-version' to be the version of the .NET SDK used in your project **** # + # **** If you've defined a specific dotnet version in global.json, change 'dotnet-version' to the version of the .NET SDK used in your project **** # - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: diff --git a/.github/workflows/richnav-csharp-multiple-sln.yaml b/.github/workflows/richnav-csharp-multiple-sln.yaml new file mode 100644 index 0000000..6bc51a6 --- /dev/null +++ b/.github/workflows/richnav-csharp-multiple-sln.yaml @@ -0,0 +1,37 @@ +### This template is meant to be used by a C# repository with multiple solutions running RichNav +### Please fill anything marked above with a "# **** #" comment with the value appropriate for your repository +name: Rich Code Navigation (.NET Core - Multiple Solutions) + +on: + pull_request: + push: + # **** Add any the name of your default branch, or any branch you want indexed on every push **** # + branches: [ main ] + +jobs: + build: + + runs-on: windows-latest + strategy: + matrix: + # **** Please change the list to be the folders which contain solutions **** # + slnDirs: [ './csharp', './AnotherSolution' ] + + steps: + + - uses: actions/checkout@v2 + + # **** If you've defined a specific dotnet version in global.json, change 'dotnet-version' to the version of the .NET SDK used in your project **** # + - name: Setup .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 3.1.101 + + - name: Install dependencies + run: dotnet restore + working-directory: ${{ matrix.slnDirs }} + + - uses: microsoft/RichCodeNavIndexer@v0.1 + with: + languages: csharp + repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/richnav-csharp.yml b/.github/workflows/richnav-csharp.yml index 6d693b5..c384103 100644 --- a/.github/workflows/richnav-csharp.yml +++ b/.github/workflows/richnav-csharp.yml @@ -1,11 +1,12 @@ -### This template is meant to be used by a .NET Core repository running RichNav +### This template is meant to be used by a C# repository running RichNav ### Please fill anything marked above with a "# **** #" comment with the value appropriate for your repository name: Rich Code Navigation (.NET Core) on: pull_request: push: - branches: [ master ] + # **** Add any the name of your default branch, or any branch you want indexed on every push **** # + branches: [ main ] jobs: build: @@ -16,7 +17,7 @@ jobs: - uses: actions/checkout@v2 - # **** Please change 'dotnet-version' to be the version of the .NET SDK used in your project **** # + # **** If you've defined a specific dotnet version in global.json, change 'dotnet-version' to the version of the .NET SDK used in your project **** # - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: diff --git a/.github/workflows/richnav-java.yml b/.github/workflows/richnav-java.yml index ae1406e..ff2e182 100644 --- a/.github/workflows/richnav-java.yml +++ b/.github/workflows/richnav-java.yml @@ -1,4 +1,4 @@ -### This template is meant to be used by a .NET Core repository running RichNav +### This template is meant to be used by a Java repository running RichNav ### Please fill anything marked above with a "# **** #" comment with the value appropriate for your repository name: Rich Code Navigation (Java with Maven) @@ -6,7 +6,8 @@ name: Rich Code Navigation (Java with Maven) on: pull_request: push: - branches: [ master ] + # **** Add any the name of your default branch, or any branch you want indexed on every push **** # + branches: [ main ] jobs: richnav: diff --git a/.github/workflows/richnav-scheduled.yaml b/.github/workflows/richnav-scheduled.yaml new file mode 100644 index 0000000..f6cc8fe --- /dev/null +++ b/.github/workflows/richnav-scheduled.yaml @@ -0,0 +1,35 @@ +### This template is meant to be used by a C# repository running RichNav on a scheduled cadence. +### This is particularly appropriate for reference repositories that aren't updated monthly. +### Please replace the C# specific steps with steps for your particular language +### Please fill anything marked above with a "# **** #" comment with the value appropriate for your repository +name: Rich Code Navigation (.NET Core) + +on: + schedule: + # **** This runs the action on the 14th of every month at midnight. Adjust the schedule as appropriate for your needs **** # + - cron: '0 14 * * 1' + +jobs: + build: + + runs-on: windows-latest + + steps: + + - uses: actions/checkout@v2 + + # **** If you've defined a specific dotnet version in global.json, change 'dotnet-version' to the version of the .NET SDK used in your project **** # + - name: Setup .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 3.1.101 + + # **** Please change 'working-directory' to be the location where your .SLN file is located **** # + - name: Install dependencies + run: dotnet restore + working-directory: ./csharp + + - uses: microsoft/RichCodeNavIndexer@v0.1 + with: + languages: csharp + repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/richnav-typescript.yml b/.github/workflows/richnav-typescript.yml index 99fde22..ba4aaa6 100644 --- a/.github/workflows/richnav-typescript.yml +++ b/.github/workflows/richnav-typescript.yml @@ -1,4 +1,4 @@ -### This template is meant to be used by a .NET Core repository running RichNav +### This template is meant to be used by a TypeScript or JavaScript repository running RichNav ### Please fill anything marked above with a "# **** #" comment with the value appropriate for your repository name: Rich Code Navigation (Node JS) @@ -6,7 +6,8 @@ name: Rich Code Navigation (Node JS) on: pull_request: push: - branches: [ master ] + # **** Add any the name of your default branch, or any branch you want indexed on every push **** # + branches: [ main ] jobs: richnav: diff --git a/AnotherSolution/AnotherSolution.sln b/AnotherSolution/AnotherSolution.sln new file mode 100644 index 0000000..411d3f5 --- /dev/null +++ b/AnotherSolution/AnotherSolution.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30426.262 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AnotherSolution", "AnotherSolution\AnotherSolution.csproj", "{4343B1BF-A100-4951-90AD-42CB919F2895}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4343B1BF-A100-4951-90AD-42CB919F2895}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4343B1BF-A100-4951-90AD-42CB919F2895}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4343B1BF-A100-4951-90AD-42CB919F2895}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4343B1BF-A100-4951-90AD-42CB919F2895}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {CE15F879-CB32-4B6C-89A8-1C23E5920DEF} + EndGlobalSection +EndGlobal diff --git a/AnotherSolution/AnotherSolution/AnotherSolution.csproj b/AnotherSolution/AnotherSolution/AnotherSolution.csproj new file mode 100644 index 0000000..c73e0d1 --- /dev/null +++ b/AnotherSolution/AnotherSolution/AnotherSolution.csproj @@ -0,0 +1,8 @@ + + + + Exe + netcoreapp3.1 + + + diff --git a/AnotherSolution/AnotherSolution/Program.cs b/AnotherSolution/AnotherSolution/Program.cs new file mode 100644 index 0000000..6e4c684 --- /dev/null +++ b/AnotherSolution/AnotherSolution/Program.cs @@ -0,0 +1,12 @@ +using System; + +namespace AnotherSolution +{ + class Program + { + static void Main(string[] args) + { + Console.WriteLine("Another testing solution!"); + } + } +}