Skip to content

Commit b8332c8

Browse files
authored
Merge pull request #36 from sourcegraph/sg-upload
Upload LSIF on every commit
2 parents 916fd8d + 404680d commit b8332c8

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/sourcegraph.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Sourcegraph
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- run: yarn install
13+
- run: yarn global add ts-node
14+
- run: ts-node src/main.ts index
15+
- uses: actions/setup-go@v2
16+
with: { go-version: '1.17' }
17+
- name: Convert LSIF Typed into LSIF Graph
18+
run: |
19+
curl -Lo lsif-typed https://github.com/sourcegraph/lsif-typescript/releases/download/v0.1.8/lsif-typed && chmod +x lsif-typed
20+
./lsif-typed dump.lsif-typed > dump.lsif
21+
- name: Upload LSIF data
22+
uses: sourcegraph/lsif-upload-action@master
23+
with:
24+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)