Skip to content

Commit ae5e7f0

Browse files
committed
ci: add sourcegraph
Signed-off-by: Florian Lehner <dev@der-flo.net>
1 parent 2469966 commit ae5e7f0

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: "sourcegraph LSIF indexing"
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
# Set default permissions as read only.
8+
permissions: read-all
9+
10+
jobs:
11+
lsif-go:
12+
runs-on: ubuntu-latest
13+
container: sourcegraph/lsif-go:latest
14+
steps:
15+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
16+
- name: Generate LSIF data
17+
run: lsif-go
18+
- name: Upload LSIF data
19+
# this will upload to Sourcegraph.com, you may need to substitute a different command.
20+
# by default, we ignore failures to avoid disrupting CI pipelines with non-critical errors.
21+
run: src lsif upload -github-token=${{ secrets.GITHUB_TOKEN }} -ignore-upload-failure

0 commit comments

Comments
 (0)