scip.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. name: SCIP
  2. on:
  3. push:
  4. paths:
  5. - '**.go'
  6. - 'go.mod'
  7. - '.github/workflows/scip.yml'
  8. env:
  9. GOPROXY: "https://proxy.golang.org"
  10. jobs:
  11. scip-go:
  12. if: github.repository == 'gogs/gogs'
  13. runs-on: ubuntu-latest
  14. container: sourcegraph/scip-go
  15. steps:
  16. - name: Checkout
  17. uses: actions/checkout@v3
  18. - name: Set directory to safe for git
  19. run: git config --global --add safe.directory $GITHUB_WORKSPACE
  20. - name: Get src-cli
  21. run: |
  22. curl -L https://sourcegraph.com/.api/src-cli/src_linux_amd64 -o /usr/local/bin/src
  23. chmod +x /usr/local/bin/src
  24. - name: Generate SCIP data
  25. run: scip-go --no-animation
  26. - name: Upload SCIP data to sourcegraph.com
  27. run: src code-intel upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress -repo=github.com/gogs/gogs
  28. env:
  29. SRC_ENDPOINT: https://sourcegraph.com/
  30. - name: Upload SCIP data to S2
  31. run: src code-intel upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress -repo=github.com/gogs/gogs
  32. env:
  33. SRC_ENDPOINT: https://sourcegraph.sourcegraph.com/