forked from sourcegraph/sourcegraph-public-snapshot
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (38 loc) · 1.42 KB
/
lsif-typescript.yml
File metadata and controls
39 lines (38 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: lsif-typescript
on:
push:
paths:
- '**.ts'
- '**.js'
jobs:
lsif-typescript:
if: github.repository == 'sourcegraph/sourcegraph'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install npm dependencies
run: yarn --ignore-engines --ignore-scripts
- name: Install src-cli
run: |
curl -L https://sourcegraph.com/.api/src-cli/src_linux_amd64 -o /usr/local/bin/src
chmod +x /usr/local/bin/src
- name: Install lsif-typescript
run: yarn global add @sourcegraph/lsif-typescript
- name: Run lsif-typescript
run: lsif-typescript index --yarnWorkspaces
- uses: actions/setup-go@v2
with: { go-version: '1.17' }
- name: Convert LSIF Typed into LSIF Graph
run: go run lib/codeintel/tools/lsif-typed/main.go dump.lsif-typed > dump.lsif
- name: Upload lsif to Cloud
run: src lsif upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress
env:
SRC_ENDPOINT: https://sourcegraph.com/
- name: Upload lsif to Dogfood
run: src lsif upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress || true
env:
SRC_ENDPOINT: https://k8s.sgdev.org/
- name: Upload lsif to Demo
run: src lsif upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress || true
env:
SRC_ENDPOINT: https://demo.sourcegraph.com/