-
Notifications
You must be signed in to change notification settings - Fork 4
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 #26 from lestrrat-go/topic/housecleaning
House cleaning
- Loading branch information
Showing
18 changed files
with
304 additions
and
218 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,35 @@ | ||
name: CI | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
go: [ '1.15', '1.14' ] | ||
name: Go ${{ matrix.go }} test | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Install Go stable version | ||
if: matrix.go != 'tip' | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
- name: Install Go tip | ||
if: matrix.go == 'tip' | ||
run: | | ||
git clone --depth=1 https://go.googlesource.com/go $HOME/gotip | ||
cd $HOME/gotip/src | ||
./make.bash | ||
echo "::set-env name=GOROOT::$HOME/gotip" | ||
echo "::add-path::$HOME/gotip/bin" | ||
echo "::add-path::$(go env GOPATH)/bin" | ||
- name: Test | ||
run: go test -v -race ./... | ||
- name: Upload code coverage to codecov | ||
if: matrix.go == '1.15' | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
file: ./coverage.out | ||
|
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,11 @@ | ||
name: lint | ||
on: [push, pull_request] | ||
jobs: | ||
golangci: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: golangci/golangci-lint-action@v2 | ||
with: | ||
version: v1.34.1 |
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,56 @@ | ||
run: | ||
skip-dirs: internal | ||
|
||
linters-settings: | ||
govet: | ||
enable-all: true | ||
disable: | ||
- shadow | ||
|
||
linters: | ||
enable-all: true | ||
disable: | ||
- dupl | ||
- exhaustive | ||
- exhaustivestruct | ||
- errorlint | ||
- funlen | ||
- gci | ||
- gochecknoglobals | ||
- gochecknoinits | ||
- gocognit | ||
- gocritic | ||
- gocyclo | ||
- godot | ||
- godox | ||
- goerr113 | ||
- gofumpt | ||
- gomnd | ||
- gosec | ||
- lll | ||
- makezero | ||
- nakedret | ||
- nestif | ||
- nlreturn | ||
- paralleltest | ||
- testpackage | ||
- thelper | ||
- unconvert | ||
- wrapcheck | ||
- wsl | ||
|
||
issues: | ||
exclude-rules: | ||
- path: /*_test.go | ||
linters: | ||
- errcheck | ||
- path: /*_example_test.go | ||
linters: | ||
- forbidigo | ||
|
||
# Maximum issues count per one linter. Set to 0 to disable. Default is 50. | ||
max-issues-per-linter: 0 | ||
|
||
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3. | ||
max-same-issues: 0 | ||
|
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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,18 @@ | ||
module github.com/lestrrat-go/fluent-client/bench | ||
|
||
go 1.16 | ||
|
||
require ( | ||
github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 // indirect | ||
github.com/fluent/fluent-logger-golang v1.5.0 | ||
github.com/k0kubun/fluent-logger-go v0.0.0-20201119054120-59ff43471d04 | ||
github.com/kr/pretty v0.2.1 // indirect | ||
github.com/lestrrat-go/backoff v1.0.1 // indirect | ||
github.com/lestrrat-go/fluent-client v0.0.0-20180220234652-cf82b4654aab | ||
github.com/lestrrat-go/msgpack v0.0.0-20191118094803-f1541f70f50e // indirect | ||
github.com/lestrrat-go/pdebug v0.0.0-20200204225717-4d6bd78da58d // indirect | ||
github.com/tinylib/msgp v1.1.5 // indirect | ||
github.com/ugorji/go v1.2.2 // indirect | ||
google.golang.org/appengine v1.6.7 // indirect | ||
gopkg.in/vmihailenco/msgpack.v2 v2.9.1 // indirect | ||
) |
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
Oops, something went wrong.