From 21df570e4707c4c762fb0393528b0f14407ecd96 Mon Sep 17 00:00:00 2001 From: Jessica Petty Date: Thu, 9 Jul 2020 14:05:54 -0700 Subject: [PATCH 01/10] Add first workflow templates --- .github/workflows/richnav-csharp.yml | 33 ++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/richnav-csharp.yml diff --git a/.github/workflows/richnav-csharp.yml b/.github/workflows/richnav-csharp.yml new file mode 100644 index 0000000..27765aa --- /dev/null +++ b/.github/workflows/richnav-csharp.yml @@ -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: + push: + branches: [ master ] + pull_request: + +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: ./DemoApp + + - uses: microsoft/RichCodeNavIndexer@v0.1 + with: + languages: csharp + repo-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From f1f6e2c292ec5c52211826b11bb3123da911078d Mon Sep 17 00:00:00 2001 From: Jessica Petty Date: Thu, 9 Jul 2020 14:30:15 -0700 Subject: [PATCH 02/10] Add typescript action --- .github/workflows/richnav-typescript.yml | 33 ++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/richnav-typescript.yml diff --git a/.github/workflows/richnav-typescript.yml b/.github/workflows/richnav-typescript.yml new file mode 100644 index 0000000..0871566 --- /dev/null +++ b/.github/workflows/richnav-typescript.yml @@ -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 (Node JS) + +on: + push: + branches: [ master ] + pull_request: + +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: npm ci + + - uses: microsoft/RichCodeNavIndexer@master + with: + languages: typescript + repo-token: ${{ secrets.GITHUB_TOKEN }} + From 2eb92d05ba162d625216f2ddac93ec797ebea6bf Mon Sep 17 00:00:00 2001 From: Jessica Petty Date: Thu, 9 Jul 2020 14:12:18 -0700 Subject: [PATCH 03/10] Update richnav-csharp.yml --- .github/workflows/richnav-csharp.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/richnav-csharp.yml b/.github/workflows/richnav-csharp.yml index 27765aa..4399c35 100644 --- a/.github/workflows/richnav-csharp.yml +++ b/.github/workflows/richnav-csharp.yml @@ -25,9 +25,9 @@ jobs: # **** Please change 'working-directory' to be the location where your .SLN file is located **** # - name: Install dependencies run: dotnet restore - working-directory: ./DemoApp + working-directory: ./csharp - uses: microsoft/RichCodeNavIndexer@v0.1 with: languages: csharp - repo-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + repo-token: ${{ secrets.GITHUB_TOKEN }} From 0cbba6c1950c21cdf28b5a8c6d8cf74345e4d7d3 Mon Sep 17 00:00:00 2001 From: Jessica Petty Date: Thu, 9 Jul 2020 14:20:12 -0700 Subject: [PATCH 04/10] Use master of rich nav task --- .github/workflows/richnav-csharp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/richnav-csharp.yml b/.github/workflows/richnav-csharp.yml index 4399c35..f79cfda 100644 --- a/.github/workflows/richnav-csharp.yml +++ b/.github/workflows/richnav-csharp.yml @@ -27,7 +27,7 @@ jobs: run: dotnet restore working-directory: ./csharp - - uses: microsoft/RichCodeNavIndexer@v0.1 + - uses: microsoft/RichCodeNavIndexer@master with: languages: csharp repo-token: ${{ secrets.GITHUB_TOKEN }} From 692abecd91e3e23b389e2cd3c123fbf6509009e1 Mon Sep 17 00:00:00 2001 From: Jessica Petty Date: Thu, 9 Jul 2020 14:34:47 -0700 Subject: [PATCH 05/10] Add java workflow --- .github/workflows/richnav-java.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/richnav-java.yml diff --git a/.github/workflows/richnav-java.yml b/.github/workflows/richnav-java.yml new file mode 100644 index 0000000..9a4cd55 --- /dev/null +++ b/.github/workflows/richnav-java.yml @@ -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: + push: + branches: [ master ] + pull_request: + +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 }} \ No newline at end of file From b75b1aeadd3cfc84fd13dabe5da7b1fcd7482af8 Mon Sep 17 00:00:00 2001 From: Jessica Petty Date: Thu, 9 Jul 2020 14:41:58 -0700 Subject: [PATCH 06/10] Fix typescript action --- .github/workflows/richnav-typescript.yml | 4 +++- .gitignore | 1 + typescript/package.json | 10 ++++++++++ typescript/yarn.lock | 4 ++++ 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 typescript/package.json create mode 100644 typescript/yarn.lock diff --git a/.github/workflows/richnav-typescript.yml b/.github/workflows/richnav-typescript.yml index 0871566..86ffbd9 100644 --- a/.github/workflows/richnav-typescript.yml +++ b/.github/workflows/richnav-typescript.yml @@ -24,7 +24,9 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - - run: npm ci + + - run: yarn + working-directory: typescript - uses: microsoft/RichCodeNavIndexer@master with: diff --git a/.gitignore b/.gitignore index 041046f..6053d9c 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ csharp/.vs/* # TypeScript typescript/lib +node_modules # Java java/lib \ No newline at end of file diff --git a/typescript/package.json b/typescript/package.json new file mode 100644 index 0000000..405365a --- /dev/null +++ b/typescript/package.json @@ -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 ./" + } +} \ No newline at end of file diff --git a/typescript/yarn.lock b/typescript/yarn.lock new file mode 100644 index 0000000..fb57ccd --- /dev/null +++ b/typescript/yarn.lock @@ -0,0 +1,4 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + From 829630f5b970b72038a14fea9a95a1216476bf79 Mon Sep 17 00:00:00 2001 From: Jessica Petty Date: Thu, 9 Jul 2020 15:39:46 -0700 Subject: [PATCH 07/10] Add new template for entire workflow --- .github/workflows/richnav-all.yml | 46 +++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/richnav-all.yml diff --git a/.github/workflows/richnav-all.yml b/.github/workflows/richnav-all.yml new file mode 100644 index 0000000..da96ae2 --- /dev/null +++ b/.github/workflows/richnav-all.yml @@ -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: + push: + branches: [ master ] + pull_request: + +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 }} \ No newline at end of file From e3dfb32e502ad709772f7adf427f24aa47be3b20 Mon Sep 17 00:00:00 2001 From: Jessica Petty Date: Thu, 9 Jul 2020 15:48:43 -0700 Subject: [PATCH 08/10] try specifying pull requests first --- .github/workflows/richnav-all.yml | 2 +- .github/workflows/richnav-csharp.yml | 2 +- .github/workflows/richnav-java.yml | 2 +- .github/workflows/richnav-typescript.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/richnav-all.yml b/.github/workflows/richnav-all.yml index da96ae2..e08595d 100644 --- a/.github/workflows/richnav-all.yml +++ b/.github/workflows/richnav-all.yml @@ -4,9 +4,9 @@ name: Rich Code Navigation on: + pull_request: push: branches: [ master ] - pull_request: jobs: richnav: diff --git a/.github/workflows/richnav-csharp.yml b/.github/workflows/richnav-csharp.yml index f79cfda..2e06630 100644 --- a/.github/workflows/richnav-csharp.yml +++ b/.github/workflows/richnav-csharp.yml @@ -3,9 +3,9 @@ name: Rich Code Navigation (.NET Core) on: + pull_request: push: branches: [ master ] - pull_request: jobs: build: diff --git a/.github/workflows/richnav-java.yml b/.github/workflows/richnav-java.yml index 9a4cd55..f73281a 100644 --- a/.github/workflows/richnav-java.yml +++ b/.github/workflows/richnav-java.yml @@ -4,9 +4,9 @@ name: Rich Code Navigation (Java with Maven) on: + pull_request: push: branches: [ master ] - pull_request: jobs: richnav: diff --git a/.github/workflows/richnav-typescript.yml b/.github/workflows/richnav-typescript.yml index 86ffbd9..82a694a 100644 --- a/.github/workflows/richnav-typescript.yml +++ b/.github/workflows/richnav-typescript.yml @@ -4,9 +4,9 @@ name: Rich Code Navigation (Node JS) on: + pull_request: push: branches: [ master ] - pull_request: jobs: richnav: From 41d17e0678569baabea70a70ec8af544d605c9f1 Mon Sep 17 00:00:00 2001 From: Jessica Petty Date: Mon, 13 Jul 2020 08:10:49 -0700 Subject: [PATCH 09/10] Explicitly list languages, use v0.1 for all --- .github/workflows/richnav-all.yml | 3 ++- .github/workflows/richnav-csharp.yml | 2 +- .github/workflows/richnav-java.yml | 2 +- .github/workflows/richnav-typescript.yml | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/richnav-all.yml b/.github/workflows/richnav-all.yml index e08595d..44f0313 100644 --- a/.github/workflows/richnav-all.yml +++ b/.github/workflows/richnav-all.yml @@ -43,4 +43,5 @@ jobs: - uses: microsoft/RichCodeNavIndexer@v0.1 with: - repo-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + repo-token: ${{ secrets.GITHUB_TOKEN }} + languages: csharp, java, typescript, cpp \ No newline at end of file diff --git a/.github/workflows/richnav-csharp.yml b/.github/workflows/richnav-csharp.yml index 2e06630..6d693b5 100644 --- a/.github/workflows/richnav-csharp.yml +++ b/.github/workflows/richnav-csharp.yml @@ -27,7 +27,7 @@ jobs: run: dotnet restore working-directory: ./csharp - - uses: microsoft/RichCodeNavIndexer@master + - uses: microsoft/RichCodeNavIndexer@v0.1 with: languages: csharp repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/richnav-java.yml b/.github/workflows/richnav-java.yml index f73281a..ae1406e 100644 --- a/.github/workflows/richnav-java.yml +++ b/.github/workflows/richnav-java.yml @@ -21,7 +21,7 @@ jobs: with: java-version: 1.8 - - uses: microsoft/RichCodeNavIndexer@master + - uses: microsoft/RichCodeNavIndexer@v0.1 with: languages: java repo-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/richnav-typescript.yml b/.github/workflows/richnav-typescript.yml index 82a694a..99fde22 100644 --- a/.github/workflows/richnav-typescript.yml +++ b/.github/workflows/richnav-typescript.yml @@ -28,7 +28,7 @@ jobs: - run: yarn working-directory: typescript - - uses: microsoft/RichCodeNavIndexer@master + - uses: microsoft/RichCodeNavIndexer@v0.1 with: languages: typescript repo-token: ${{ secrets.GITHUB_TOKEN }} From b59b9b223a8d3aaa489c2cfe0e92a37943395edb Mon Sep 17 00:00:00 2001 From: Jessica Petty Date: Mon, 13 Jul 2020 08:23:55 -0700 Subject: [PATCH 10/10] Fix typo --- .github/workflows/richnav-all.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/richnav-all.yml b/.github/workflows/richnav-all.yml index 44f0313..e47f1f2 100644 --- a/.github/workflows/richnav-all.yml +++ b/.github/workflows/richnav-all.yml @@ -44,4 +44,4 @@ jobs: - uses: microsoft/RichCodeNavIndexer@v0.1 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - languages: csharp, java, typescript, cpp \ No newline at end of file + languages: csharp,java,typescript,cpp \ No newline at end of file