diff --git a/.github/workflows/lsif.yml b/.github/workflows/lsif.yml deleted file mode 100644 index 900a1604..00000000 --- a/.github/workflows/lsif.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: LSIF -on: - - push -jobs: - lsif-ts: - runs-on: ubuntu-latest - container: sourcegraph/lsif-node - strategy: - matrix: - root: - - packages/cli - - packages/common - - packages/demo-app - - packages/eslint-plugin - - packages/toolkit-css - - packages/toolkit-packages - - packages/toolkit-ts - - packages/transforms - - steps: - - uses: actions/checkout@v2 - - - name: Setup Node.js - uses: actions/setup-node@v2 - with: - node-version: 16 - - - name: Install dependencies - run: yarn --ignore-engines --ignore-scripts - - - name: Generate LSIF data - working-directory: ${{ matrix.root }} - run: lsif-tsc -p . - - - name: Upload lsif-tsc dump to Cloud - working-directory: ${{ matrix.root }} - run: src lsif upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress - env: - SRC_ENDPOINT: https://sourcegraph.com/ - - - name: Upload lsif-tsc dump to Dogfood - working-directory: ${{ matrix.root }} - run: src lsif upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress || true - env: - SRC_ENDPOINT: https://k8s.sgdev.org/ diff --git a/.github/workflows/scip.yml b/.github/workflows/scip.yml new file mode 100644 index 00000000..8ab78254 --- /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 --yarn-workspaces + - 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/