Skip to content
Open
Show file tree
Hide file tree
Changes from 10 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
46 changes: 46 additions & 0 deletions .github/workflows/richnav-all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
### This template is meant to be used by a .NET Core repository running RichNav
### 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 ]

jobs:
richnav:

runs-on: windows-latest

steps:
- uses: actions/checkout@v2

# **** Please change 'dotnet-version' to be 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

# **** Please change the version of Node being used to the one for your project **** #
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x

- run: yarn
working-directory: typescript

- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

- uses: microsoft/RichCodeNavIndexer@v0.1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we revise this one a little bit to be a template just for multiple languages? So still include a with: languages: line to show how to submit a list of specific languages? I imagine some repos will potentially have multiple but maybe not all languages included in them.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it! Done :)

33 changes: 33 additions & 0 deletions .github/workflows/richnav-csharp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
### This template is meant to be used by a .NET Core 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 ]

jobs:
build:

runs-on: windows-latest

steps:

- uses: actions/checkout@v2

# **** Please change 'dotnet-version' to be 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@master
with:
languages: csharp
repo-token: ${{ secrets.GITHUB_TOKEN }}
27 changes: 27 additions & 0 deletions .github/workflows/richnav-java.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
### This template is meant to be used by a .NET Core 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 ]

jobs:
richnav:

runs-on: windows-latest

steps:
- uses: actions/checkout@v2

- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

- uses: microsoft/RichCodeNavIndexer@master
with:
languages: java
repo-token: ${{ secrets.GITHUB_TOKEN }}
35 changes: 35 additions & 0 deletions .github/workflows/richnav-typescript.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
### This template is meant to be used by a .NET Core 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 ]

jobs:
richnav:

runs-on: windows-latest

# **** If necessary, use the Node version for your repository. Note: must be greater than 10.x **** #
strategy:
matrix:
node-version: [10.x, 12.x, 14.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- run: yarn
working-directory: typescript

- uses: microsoft/RichCodeNavIndexer@master
with:
languages: typescript
repo-token: ${{ secrets.GITHUB_TOKEN }}

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore

# TypeScript
typescript/lib
node_modules
.vscode/

# User-specific files
Expand Down
10 changes: 10 additions & 0 deletions typescript/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "tester-game",
"version": "0.0.1",
"description": "A simple Typescript game to test things",
"main": "App.js",
"license": "MIT",
"scripts": {
"build": "tsc -p ./"
}
}
4 changes: 4 additions & 0 deletions typescript/yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1