diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index e33811f..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,7 +0,0 @@ -version: 2 -updates: - - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "monthly" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e5d4cf..617c1c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,12 +8,20 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: olafurpg/setup-scala@v13 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + distribution: "temurin" + cache: "sbt" + java-version: 8 - run: sbt scripted +test check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: olafurpg/setup-scala@v13 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + distribution: "temurin" + cache: "sbt" + java-version: 8 - run: sbt checkAll diff --git a/.github/workflows/pr-auditor.yml b/.github/workflows/pr-auditor.yml index 3fe4223..626ebc4 100644 --- a/.github/workflows/pr-auditor.yml +++ b/.github/workflows/pr-auditor.yml @@ -8,7 +8,7 @@ jobs: check-pr: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: { repository: 'sourcegraph/sourcegraph' } - uses: actions/setup-go@v2 with: { go-version: '1.18' } diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3103752..a9a3cbd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,10 +7,14 @@ jobs: publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: olafurpg/setup-scala@v13 - - uses: olafurpg/setup-gpg@v3 - - run: git fetch --unshallow + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: 8 + cache: 'sbt' - name: Publish ${{ github.ref }} run: sbt ci-release env: diff --git a/.github/workflows/sourcegraph.yml b/.github/workflows/sourcegraph.yml index 6c6c626..03a643a 100644 --- a/.github/workflows/sourcegraph.yml +++ b/.github/workflows/sourcegraph.yml @@ -4,19 +4,25 @@ on: branches: - main pull_request: + jobs: - lsif: + scip: runs-on: ubuntu-latest - name: "Upload LSIF" + name: "Upload SCIP" steps: - - uses: actions/checkout@v2 - - uses: coursier/setup-action@v1.1.2 + - uses: actions/checkout@v3 + - uses: coursier/setup-action@v1 with: - jvm: adopt:8 - - run: | - cs launch com.sourcegraph:scip-java_2.13:latest.stable -M com.sourcegraph.scip_java.ScipJava -- index - - run: yarn global add @sourcegraph/src - - run: | - src code-intel upload "-commit=${GITHUB_SHA}" "-github-token=${GITHUB_TOKEN}" + jvm: 'temurin:8' + apps: scip-java + + - name: Generate SCIP File + run: scip-java index + + - name: Install src + run: yarn global add @sourcegraph/src + + - name: Upload SCIP file + run: src code-intel upload -github-token $GITHUB_TOKEN env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}