Use correct selection range #625
Workflow file for this run
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
name: scip-typescript | |
on: | |
push: | |
paths: | |
- '**.ts' | |
- '**.tsx' | |
- '**.js' | |
jobs: | |
scip-typescript: | |
if: github.repository == 'sourcegraph/cody' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
id: pnpm-install | |
with: | |
version: 8.6.7 | |
run_install: false | |
- name: Get pnpm store directory | |
id: pnpm-cache | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v3 | |
name: Setup pnpm cache | |
with: | |
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm dlx @sourcegraph/scip-typescript index --pnpm-workspaces --no-global-caches | |
- run: yarn global add @sourcegraph/src | |
- name: Upload SCIP to Cloud | |
run: src lsif upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress | |
env: | |
SRC_ENDPOINT: https://sourcegraph.com/ | |
- name: Upload SCIP to S2 | |
run: src lsif upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress | |
env: | |
SRC_ENDPOINT: https://sourcegraph.sourcegraph.com/ | |
- name: Upload lsif to Dogfood | |
run: src lsif upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress || true | |
env: | |
SRC_ENDPOINT: https://k8s.sgdev.org/ | |
- name: Upload lsif to Demo | |
run: src lsif upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress || true | |
env: | |
SRC_ENDPOINT: https://demo.sourcegraph.com/ |