Skip to content

Commit 1420761

Browse files
committed
Setup sourcegraph
1 parent 54a6c52 commit 1420761

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,33 @@ jobs:
5050
- name: Check MiMa # disable for major releases
5151
run: sbt -v core3/mimaReportBinaryIssues
5252

53+
sourcegraph:
54+
# run on external PRs, but not on internal PRs since those will be run by push to branch
55+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
56+
runs-on: ubuntu-20.04
57+
env:
58+
JAVA_OPTS: -Xmx4G
59+
steps:
60+
- name: Checkout
61+
uses: actions/checkout@v2
62+
- name: Set up JDK 11
63+
uses: coursier/[email protected]
64+
with:
65+
jvm: adopt:11
66+
apps: lsif-java
67+
- name: Cache sbt
68+
uses: coursier/cache-action@v6
69+
with:
70+
extraKey: sbt-cache-${{ runner.os }}
71+
- name: Generate LSIF
72+
run: lsif-java index
73+
- name: Upload LSIF data
74+
uses: sourcegraph/lsif-upload-action@master
75+
with:
76+
endpoint: https://sourcegraph.com
77+
github_token: ${{ secrets.GITHUB_TOKEN }}
78+
file: dump.lsif
79+
5380
publish:
5481
name: Publish release
5582
needs: [ci]

0 commit comments

Comments
 (0)