-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add lsif index workflow (#646)
* re-enable LSIF index workflow (https://docs.sourcegraph.com/user/code_intelligence/lsif) * rename lsif workflow to just 'LSIF' * rename lsif/build to lsif/index
- Loading branch information
Showing
1 changed file
with
12 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,16 @@ | ||
name: LSIF Upload | ||
|
||
name: LSIF | ||
on: | ||
push: | ||
# TODO: enable when this feature stabilizes on sourcegraph's end | ||
branches: [ lsif ] | ||
|
||
- push | ||
jobs: | ||
build: | ||
index: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-go@v1 | ||
with: | ||
go-version: '1.13' | ||
- name: Install lsif-go | ||
working-directory: '/' | ||
run: go get github.com/sourcegraph/lsif-go/cmd/lsif-go | ||
- name: Generate LSIF data | ||
run: go run github.com/sourcegraph/lsif-go/cmd/lsif-go --noContents --out=data.lsif | ||
- name: Upload LSIF data | ||
uses: sourcegraph/lsif-upload-action@0.1.2-dogfood | ||
with: | ||
file: data.lsif | ||
access_token: ${{ secrets.sourcegraph_lsif_token }} | ||
- uses: actions/checkout@v1 | ||
- name: Generate LSIF Data | ||
uses: sourcegraph/lsif-go-action@master | ||
with: | ||
verbose: "true" | ||
- name: Upload LSIF data | ||
uses: sourcegraph/lsif-upload-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |