From 8cefba110fc4afe2d73844f9270eb6e86f769db4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93lafur=20P=C3=A1ll=20Geirsson?= Date: Wed, 5 Jan 2022 15:04:41 +0100 Subject: [PATCH] Update LSIF action --- .github/workflows/sourcegraph.yml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/sourcegraph.yml b/.github/workflows/sourcegraph.yml index c976b8c..9abbf66 100644 --- a/.github/workflows/sourcegraph.yml +++ b/.github/workflows/sourcegraph.yml @@ -3,22 +3,21 @@ on: push: branches: - main - pull_request: + pull_request: jobs: lsif: runs-on: ubuntu-latest name: "Upload LSIF" steps: - uses: actions/checkout@v2 - - uses: olafurpg/setup-scala@v13 - - uses: actions/setup-go@v2 + - uses: coursier/setup-action@v1.1.2 with: - go-version: "1.15.6" - - run: | - mkdir -p bin - curl -L https://sourcegraph.com/.api/src-cli/src_linux_amd64 -o bin/src - chmod +x bin/src - export PATH="$PATH:$PWD/bin" - sbt sourcegraphUpload - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + jvm: adopt:8 + apps: lsif-java + - run: lsif-java index + - name: Upload LSIF data + uses: sourcegraph/lsif-upload-action@master + with: + endpoint: https://sourcegraph.com + github_token: ${{ secrets.GITHUB_TOKEN }} + file: dump.lsif