diff --git a/.github/workflows/lsif.yml b/.github/workflows/lsif.yml deleted file mode 100644 index fd5bffb40..000000000 --- a/.github/workflows/lsif.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: LSIF -on: - - push -jobs: - lsif-ts: - runs-on: ubuntu-latest - container: sourcegraph/lsif-node - steps: - - uses: actions/checkout@v1 - - name: Install dependencies - run: yarn install - - name: Generate LSIF data - run: lsif-tsc -p . - - name: Upload LSIF data - run: src lsif upload -github-token=${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/scip.yml b/.github/workflows/scip.yml new file mode 100644 index 000000000..4b1e4f954 --- /dev/null +++ b/.github/workflows/scip.yml @@ -0,0 +1,23 @@ +name: SCIP +on: + - push +jobs: + index: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: 16 + - run: yarn global add @sourcegraph/scip-typescript @sourcegraph/src + - run: yarn --ignore-engines --ignore-scripts + - run: scip-typescript index + - 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 Dogfood + run: src lsif upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress || true + env: + SRC_ENDPOINT: https://k8s.sgdev.org/