-
Notifications
You must be signed in to change notification settings - Fork 379
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
72 additions
and
37 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,28 @@ | ||
name: LSIF | ||
on: [push] | ||
on: | ||
push: | ||
paths: | ||
- '**.go' | ||
- 'go.mod' | ||
- '.github/workflows/lsif.yml' | ||
env: | ||
GOPROXY: "https://proxy.golang.org" | ||
|
||
jobs: | ||
build: | ||
lsif-go: | ||
if: github.repository == 'go-ini/ini' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v2 | ||
- name: Generate LSIF data | ||
uses: sourcegraph/lsif-go-action@master | ||
- name: Upload LSIF data to sourcegraph.com | ||
continue-on-error: true | ||
uses: docker://sourcegraph/src-cli:latest | ||
with: | ||
verbose: 'true' | ||
- name: Upload LSIF data | ||
uses: sourcegraph/lsif-upload-action@master | ||
args: lsif upload -github-token=${{ secrets.GITHUB_TOKEN }} | ||
- name: Upload LSIF data to sourcegraph.unknwon.cn | ||
continue-on-error: true | ||
uses: docker://sourcegraph/src-cli:latest | ||
with: | ||
endpoint: https://sourcegraph.com | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
args: -endpoint=https://sourcegraph.unknwon.cn lsif upload -github-token=${{ secrets.GITHUB_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
linters-settings: | ||
nakedret: | ||
max-func-lines: 0 # Disallow any unnamed return statement | ||
|
||
linters: | ||
enable: | ||
- deadcode | ||
- errcheck | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- staticcheck | ||
- structcheck | ||
- typecheck | ||
- unused | ||
- varcheck | ||
- nakedret | ||
- gofmt | ||
- rowserrcheck | ||
- unconvert | ||
- goimports |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ coverage: | |
threshold: 1% | ||
|
||
comment: | ||
layout: 'diff, files' | ||
layout: 'diff' |
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
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
ReplaceAll was added in go1.12
readme: The minimum requirement of Go is 1.6.
Please update readme or revert the changes ?