-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use scip-go instead of lsif-go for precise indexing in CI
- Loading branch information
Showing
2 changed files
with
38 additions
and
38 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: scip-go | ||
on: | ||
push: | ||
paths: | ||
- '**.go' | ||
|
||
jobs: | ||
scip-go: | ||
# Skip running on forks | ||
if: github.repository == 'sourcegraph/log' | ||
runs-on: ubuntu-latest | ||
container: sourcegraph/scip-go | ||
steps: | ||
# Setup | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
# Run scip-go | ||
- name: Run scip-go | ||
working-directory: '' | ||
run: scip-go --no-animation | ||
|
||
# Upload scip-go data to Cloud, Dogfood, and Demo instances | ||
- name: Upload scip-go dump to Cloud | ||
working-directory: '' | ||
run: src code-intel upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress | ||
env: | ||
SRC_ENDPOINT: https://sourcegraph.com/ | ||
- name: Upload scip-go dump to Dogfood | ||
working-directory: '' | ||
run: src code-intel upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress || true | ||
env: | ||
SRC_ENDPOINT: https://k8s.sgdev.org/ | ||
- name: Upload scip-go dump to Demo | ||
working-directory: '' | ||
run: src code-intel upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress || true | ||
env: | ||
SRC_ENDPOINT: https://demo.sourcegraph.com/ |