From 3019cc3acbaed53650abb8fdf270ec3c80bcbee1 Mon Sep 17 00:00:00 2001 From: Noah S-C Date: Fri, 23 Feb 2024 15:33:21 +0000 Subject: [PATCH] chore: use scip-go instead of lsif-go for precise indexing in CI --- .github/workflows/lsif-go.yml | 16 ---------------- .github/workflows/scip-go.yml | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 16 deletions(-) delete mode 100644 .github/workflows/lsif-go.yml create mode 100644 .github/workflows/scip-go.yml diff --git a/.github/workflows/lsif-go.yml b/.github/workflows/lsif-go.yml deleted file mode 100644 index a759c77..0000000 --- a/.github/workflows/lsif-go.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Sourcegraph code intelligence -on: - - push - -jobs: - lsif-go: - runs-on: ubuntu-latest - container: sourcegraph/lsif-go:latest - steps: - - uses: actions/checkout@v1 - - name: Generate LSIF data - run: lsif-go - - name: Upload LSIF data - # this will upload to Sourcegraph.com, you may need to substitute a different command. - # by default, we ignore failures to avoid disrupting CI pipelines with non-critical errors. - run: src lsif upload -github-token=${{ secrets.GITHUB_TOKEN }} -ignore-upload-failure diff --git a/.github/workflows/scip-go.yml b/.github/workflows/scip-go.yml new file mode 100644 index 0000000..c1569ac --- /dev/null +++ b/.github/workflows/scip-go.yml @@ -0,0 +1,18 @@ +name: Sourcegraph code intelligence +'on': + - push +jobs: + scip-go: + runs-on: ubuntu-latest + container: sourcegraph/scip-go:latest + steps: + - uses: actions/checkout@v1 + - 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: Set directory to safe for git + run: git config --global --add safe.directory $GITHUB_WORKSPACE + - name: Generate SCIP data + run: scip-go + - name: Upload SCIP data + run: src code-intel upload -github-token=${{ secrets.GITHUB_TOKEN }} -ignore-upload-failure