Skip to content

Commit

Permalink
chore: add lsif index workflow (#646)
Browse files Browse the repository at this point in the history
* 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
bobheadxi committed Mar 12, 2020
1 parent 0ac7dab commit 32f276a
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions .github/workflows/lsif.yml
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 }}

0 comments on commit 32f276a

Please sign in to comment.