https://github.com/sourcegraph/lsif-go-action
https://github.com/sourcegraph/lsif-go-action
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sourcegraph/lsif-go-action
- Owner: sourcegraph
- License: mit
- Created: 2019-10-09T14:11:21.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-08-20T10:31:07.000Z (over 1 year ago)
- Last Synced: 2025-07-03T14:18:05.449Z (7 months ago)
- Language: Dockerfile
- Size: 34.2 KB
- Stars: 5
- Watchers: 59
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sourcegraph Go LSIF Indexer GitHub Action
This action generate LSIF data from Go source code. See the [LSIF go indexer](https://github.com/sourcegraph/lsif-go) 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](https://github.com/sourcegraph/lsif-upload-action) to upload the generated data to [sourcegraph.com](https://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 }}
```