Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
35 changes: 35 additions & 0 deletions .github/workflows/rich-navigation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "Rich Navigation Indexing"
on:
workflow_dispatch:
push:
branches:
- main
- release-*
pull_request:
branches:
- main
- release-*

jobs:
richnav:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 5

- uses: actions/setup-node@v2
with:
node-version: 14

- name: Install dependencies
run: npm ci

- uses: microsoft/RichCodeNavIndexer@v0.1
with:
languages: typescript
repo-token: ${{ secrets.GITHUB_TOKEN }}
typescriptVersion: 0.6.0-next.17
configFiles: .lsifrc.json
continue-on-error: true
6 changes: 6 additions & 0 deletions .lsifrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Any way we could have this in a subdirectory to minimize top-level clutter?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, can be in a sub directory. What name would you suggest?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

scripts/lsif ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Alternatively we can move it to the GitHub action source (e.g. .github/workflows)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think moving it to .github/workflows would be ideal, not sure whether others agree.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe .github/workflow-resources in case adding things into the workflows folder has its own issues.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Will give it a try

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Add it to github/workflow-resources to not tamper with a folder owned by github.

"project": "src/tsconfig.json",
"source": "./package.json",
"package": "package.json",
"out": "typescript.lsif"
}