This action generate LSIF data from Go source code. See the LSIF go indexer for more details.
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 }}