Skip to content

spotless

spotless #835

Workflow file for this run

name: Sourcegraph
on:
push:
paths:
- '**.kt'
- '**.java'
- '**.kts'
jobs:
scip-java:
if: github.repository == 'sourcegraph/jetbrains'
runs-on: ubuntu-latest
name: "Upload SCIP"
steps:
- uses: actions/checkout@v3
- run: yarn global add pnpm@8.6.7
- run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
shell: bash
id: pnpm-cache
- name: Cache pnpm store
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-${{ matrix.node }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-${{ matrix.node }}-pnpm-store-k
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- uses: coursier/setup-action@v1
with:
jvm: 'zulu:11'
apps: scip-java
- name: Generate SCIP File
run: scip-java index --build-tool=gradle
- 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 }}