forked from jumattos/tester-game
-
Notifications
You must be signed in to change notification settings - Fork 2
Add templates for GitHub Actions #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jepetty
wants to merge
12
commits into
xuachen:master
Choose a base branch
from
jepetty:addTemplates
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 10 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
21df570
Add first workflow templates
jepetty f1f6e2c
Add typescript action
jepetty 2eb92d0
Update richnav-csharp.yml
jepetty 0cbba6c
Use master of rich nav task
jepetty 692abec
Add java workflow
jepetty b75b1ae
Fix typescript action
jepetty 27017e4
Merge branch 'master' into addTemplates
jepetty 829630f
Add new template for entire workflow
jepetty 34cedcd
Merge branch 'addTemplates' of https://github.com/jepetty/tester-game…
jepetty e3dfb32
try specifying pull requests first
jepetty 41d17e0
Explicitly list languages, use v0.1 for all
jepetty b59b9b2
Fix typo
jepetty File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 ./" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
|
|
||
|
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it! Done :)