Skip to content
Merged
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
8 changes: 5 additions & 3 deletions .github/workflows/richnav-all.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
### 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

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:
Expand All @@ -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:
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/richnav-csharp-multiple-sln.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
7 changes: 4 additions & 3 deletions .github/workflows/richnav-csharp.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/richnav-java.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
### 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)

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:
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/richnav-scheduled.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
5 changes: 3 additions & 2 deletions .github/workflows/richnav-typescript.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
### 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)

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:
Expand Down
25 changes: 25 additions & 0 deletions AnotherSolution/AnotherSolution.sln
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions AnotherSolution/AnotherSolution/AnotherSolution.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>

</Project>
12 changes: 12 additions & 0 deletions AnotherSolution/AnotherSolution/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System;

namespace AnotherSolution
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Another testing solution!");
}
}
}