-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #379 from ghostbuster91/setup-sourcegraph-scala2
Setup sourcegraph for scala 2
- Loading branch information
Showing
2 changed files
with
36 additions
and
6 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -16,9 +16,9 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 | ||
uses: coursier/setup-action@v1.1.2 | ||
with: | ||
java-version: 11 | ||
jvm: adopt:11 | ||
- name: Cache sbt | ||
uses: coursier/cache-action@v6 | ||
with: | ||
|
@@ -40,16 +40,44 @@ jobs: | |
with: | ||
fetch-depth: 0 # checkout tags so that dynver works properly (we need the version for MiMa) | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 | ||
uses: coursier/setup-action@v1.1.2 | ||
with: | ||
java-version: 11 | ||
jvm: adopt:11 | ||
- name: Cache sbt | ||
uses: coursier/cache-action@v6 | ||
with: | ||
extraKey: sbt-cache-${{ runner.os }} | ||
- name: Check MiMa # disable for major releases | ||
run: sbt -v core/mimaReportBinaryIssues | ||
|
||
sourcegraph: | ||
name: Upload index to sourcegraph | ||
needs: [ci] | ||
# run on external PRs, but not on internal PRs since those will be run by push to branch | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
runs-on: ubuntu-20.04 | ||
env: | ||
JAVA_OPTS: -Xmx4G | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up JDK 11 | ||
uses: coursier/[email protected] | ||
with: | ||
jvm: adopt:11 | ||
- name: Cache sbt | ||
uses: coursier/cache-action@v6 | ||
with: | ||
extraKey: sbt-cache-${{ runner.os }} | ||
- name: Generate LSIF | ||
run: sbt 'set every semanticdbEnabled := true; set every semanticdbVersion := "4.4.33"' sourcegraphLsif | ||
- name: Upload LSIF data | ||
uses: sourcegraph/lsif-upload-action@master | ||
with: | ||
endpoint: https://sourcegraph.com | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: target/sbt-sourcegraph/dump.lsif | ||
|
||
publish: | ||
name: Publish release | ||
needs: [ci] | ||
|
@@ -61,9 +89,9 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 | ||
uses: coursier/setup-action@v1.1.2 | ||
with: | ||
java-version: 11 | ||
jvm: adopt:11 | ||
- name: Cache sbt | ||
uses: coursier/cache-action@v6 | ||
with: | ||
|
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