Skip to content

Commit

Permalink
chore: use scip-go instead of lsif-go for precise indexing in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Strum355 committed Feb 23, 2024
1 parent 12bcd9d commit e0f3c80
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 28 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/lsif.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/scip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: SCIP
'on':
push:
paths:
- '**.go'
- go.mod
- .github/workflows/lsif.yml
env:
GOPROXY: https://proxy.golang.org
jobs:
scip-go:
if: github.repository == 'sourcegraph/docsite'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get 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: Generate SCIP data
uses: sourcegraph/scip-go-action@master
- name: Upload SCIP data to sourcegraph.com
continue-on-error: true
uses: docker://sourcegraph/src-cli:latest
with:
args: lsif upload -github-token=${{ secrets.GITHUB_TOKEN }}
- name: Upload SCIP data to S2
continue-on-error: true
uses: docker://sourcegraph/src-cli:latest
with:
args: -endpoint=https://sourcegraph.sourcegraph.com lsif upload -github-token=${{
secrets.GITHUB_TOKEN }}

0 comments on commit e0f3c80

Please sign in to comment.