Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

 

History

27 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sourcegraph TypeScript LSIF Indexer GitHub Action

This action generate LSIF data from TypeScript source code. See the LSIF TypeScript indexer for more details.

Usage

The following inputs can be set.

name default description
file dump.lsif The output file (relative to the repository root).
project_root . The root of the project (where tsconfig.json is located).
flags -p . The flags to pass to the indexer.

The following is a complete example that uses the upload action to upload the generated data to sourcegraph.com. Put this in .github/workflows/lsif.yaml.

name: LSIF
on:
  - push
jobs:
  index:
    runs-on: ubuntu-latest
    container: node:13.8.0-alpine3.10
    steps:
      - uses: actions/checkout@v1
      - name: Install dependencies
        run: yarn
      - name: Generate LSIF data
        uses: sourcegraph/lsif-node-action@master
      - name: Upload LSIF data
        uses: sourcegraph/lsif-upload-action@master
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}

About

No description, website, or topics provided.

Resources

Stars

5 stars

Watchers

49 watching

Forks

Releases

Packages

Used by

Contributors

Languages