Skip to content

sourcegraph/lsif-go-action

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sourcegraph Go LSIF Indexer GitHub Action

This action generate LSIF data from Go source code. See the LSIF go 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 repository.
module_root . The directory where go.mod is located, relative to the repository.
additional_args '' Additional args that are passed directly to lsif-go.

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
    steps:
      - uses: actions/checkout@v1
      - name: Generate LSIF data
        uses: sourcegraph/lsif-go-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

License

Stars

Watchers

Forks

Packages

No packages published