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