This repository has been archived by the owner on Mar 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from oleg-balunenko/dev
Refactor
- Loading branch information
Showing
305 changed files
with
46,371 additions
and
20,757 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Go | ||
on: [push] | ||
jobs: | ||
|
||
vet: | ||
name: Vet | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Set up Go 1.13 | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.13 | ||
id: go | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v1 | ||
|
||
- name: Get dependencies | ||
run: go mod download | ||
|
||
- name: Vet | ||
run: go vet $(go list ./...) | ||
|
||
|
||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Set up Go 1.13 | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.13 | ||
id: go | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v1 | ||
|
||
- name: Get dependencies | ||
run: go mod download | ||
|
||
- name: Test | ||
run: make test | ||
|
||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Set up Go 1.13 | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.13 | ||
id: go | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v1 | ||
|
||
- name: Get dependencies | ||
run: go mod download | ||
|
||
- name: Build | ||
run: make compile | ||
|
||
|
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,32 @@ | ||
name: Reviewdog on Pull Request | ||
on: [pull_request] | ||
jobs: | ||
reviewdog: | ||
name: reviewdog | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Dump GitHub Context | ||
env: | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
run: echo "${GITHUB_CONTEXT}" | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.13 | ||
id: go | ||
|
||
- name: Add $GOPATH/bin | ||
run: | | ||
echo ::add-path::$(go env GOPATH)/bin | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v1 | ||
|
||
- name: Install linters | ||
run: make dependencies | ||
|
||
- name: Run reviewdog | ||
env: | ||
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: make review |
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
*.dll | ||
*.so | ||
*.dylib | ||
|
||
dist/ | ||
# Test binary, build with `go test -c` | ||
*.test | ||
|
||
|
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
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,42 @@ | ||
# reviewdog.yml | ||
|
||
runner: | ||
golint: | ||
cmd: golint $(go list ./... | grep -v /vendor/) | ||
format: golint | ||
level: error | ||
govet: | ||
cmd: go vet $(go list ./... | grep -v /vendor/) | ||
format: govet | ||
level: error | ||
errcheck: | ||
cmd: errcheck -asserts -ignoretests -blank $(go list ./... | grep -v /vendor/) | ||
errorformat: | ||
- "%f:%l:%c:%m" | ||
level: error | ||
staticcheck: | ||
cmd: staticcheck $(go list ./... | grep -v /vendor/) | ||
errorformat: | ||
- "%f:%l:%c: %m" | ||
level: error | ||
misspell: | ||
cmd: misspell $(git ls-files | grep -v /vendor/)) | ||
errorformat: | ||
- "%f:%l:%c: %m" | ||
level: error | ||
unparam: | ||
cmd: unparam $(go list ./... | grep -v /vendor/) | ||
errorformat: | ||
- "%f:%l:%c: %m" | ||
level: error | ||
revive: | ||
cmd: revive -config=.revive.toml $(go list ./... | grep -v /vendor/) | ||
format: golint | ||
level: error | ||
golangci: | ||
cmd: golangci-lint run --out-format=line-number ./... | ||
errorformat: | ||
- '%E%f:%l:%c: %m' | ||
- '%E%f:%l: %m' | ||
- '%C%.%#' | ||
level: error |
Oops, something went wrong.