diff --git a/.github/workflows/codextest.yml b/.github/workflows/codextest.yml new file mode 100644 index 0000000..8d9f895 --- /dev/null +++ b/.github/workflows/codextest.yml @@ -0,0 +1,34 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the action will run. +on: + pull_request: + push: + branches: + - main + +jobs: + build: + runs-on: windows-latest + + steps: + # - name: Setup Java JDK + # uses: actions/setup-java@v2.1.0 + # with: + # java-version: '11' + # distribution: 'zulu' + - uses: actions/checkout@v2 + # - uses: jepetty/debug-action@master + - uses: actions/setup-node@v2 + with: + node-version: 14 + - name: Rich Code Nav Indexer + uses: microsoft/RichCodeNavIndexer@v0.1 + with: + languages: typescript + environment: production + repo-token: ${{ secrets.GITHUB_TOKEN }} + typescriptVersion: 0.6.0-next.15 + diff --git a/azure-pipelines-dev.yml b/azure-pipelines-dev.yml index 71346bd..6074b17 100644 --- a/azure-pipelines-dev.yml +++ b/azure-pipelines-dev.yml @@ -2,7 +2,7 @@ trigger: branches: - include: ["master", "*"] + include: ["main", "*"] paths: exclude: ["doc", "*.md"] @@ -11,7 +11,7 @@ schedules: displayName: Weekly Development Environment Validation Run branches: include: - - master + - main always: true queue: @@ -30,8 +30,6 @@ steps: serviceConnection: 'richCodeNav-Token-Dev' languages: 'csharp,typescript,java,cpp' githubServiceConnection: 'xuachen' - nugetFeed: 'https://devdiv.pkgs.visualstudio.com/Personal/_packaging/richnav/nuget/v3/index.json' isPrivateFeed: true - nugetVersion: '0.1.1617-alpha' environment: development continueOnError: true diff --git a/azure-pipelines-int.yml b/azure-pipelines-int.yml index a4fc937..c0fc448 100644 --- a/azure-pipelines-int.yml +++ b/azure-pipelines-int.yml @@ -2,7 +2,7 @@ trigger: branches: - include: ["master", "*"] + include: ["main", "*"] paths: exclude: ["doc", "*.md"] @@ -11,7 +11,7 @@ schedules: displayName: Weekly Staging Environment Validation Run branches: include: - - master + - main always: true queue: diff --git a/azure-pipelines-prod.yml b/azure-pipelines-prod.yml index ace2458..e34d298 100644 --- a/azure-pipelines-prod.yml +++ b/azure-pipelines-prod.yml @@ -2,7 +2,7 @@ trigger: branches: - include: ["master", "*"] + include: ["main", "*"] paths: exclude: ["doc", "*.md"] @@ -11,7 +11,7 @@ schedules: displayName: Weekly Production Environment Validation Run branches: include: - - master + - main always: true queue: @@ -19,11 +19,6 @@ queue: timeoutInMinutes: 60 steps: -- task: NodeTool@0 - displayName: 'Use Node 10.x' - inputs: - versionSpec: 10.x - - task: MS-RichCodeNav.Indexer.build-task.RichCodeNavIndexer@0 displayName: Rich Code Navigation Upload to Production inputs: diff --git a/csharp/src/GameObject.cs b/csharp/src/GameObject.cs index 9a2a382..f34bec9 100644 --- a/csharp/src/GameObject.cs +++ b/csharp/src/GameObject.cs @@ -1,5 +1,3 @@ -using System; - namespace game { class GameObject: Drawable, Interactive diff --git a/csharp/src/Program.cs b/csharp/src/Program.cs index 0613f9c..9ba22a1 100644 --- a/csharp/src/Program.cs +++ b/csharp/src/Program.cs @@ -6,7 +6,7 @@ class Program { static void Main(string[] args) { - Interactive block = new GameObject(10, 10); + Interactive block = new GameObject(10, 10); // comment!! block.interact(); } } diff --git a/java/src/main/java/com/test/sort/App.java b/java/src/main/java/com/test/sort/App.java index f72a225..0d1f74e 100644 --- a/java/src/main/java/com/test/sort/App.java +++ b/java/src/main/java/com/test/sort/App.java @@ -6,9 +6,9 @@ */ public class App { - public static void main( String[] args ) + public static void main(String[] args) { - System.out.println( "Hello World!" ); + System.out.println("Hello World!"); } } @@ -18,7 +18,7 @@ public > T[] sort(T[] array) { } public static void main(String[] args) { - SomeSort pancakeSort = new SomeSort(); + SomeSort pancakeSort = new SomeSort(); // comment pancakeSort.sort(arr); } } diff --git a/typescript/package.json b/typescript/package.json new file mode 100644 index 0000000..f0755ed --- /dev/null +++ b/typescript/package.json @@ -0,0 +1,11 @@ +{ + "name": "typescript", + "version": "1.0.0", + "description": "sample project for deployment testing RichNav for TypeScript ", + "main": "App.ts", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "", + "license": "ISC" +}