forked from linkedin/Burrow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
57 changed files
with
883 additions
and
518 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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 @@ | ||
* @bai |
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,44 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
name: Go ${{ matrix.go-version }} on Ubuntu | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
go-version: [1.12.x, 1.13.x] | ||
platform: [ubuntu-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
|
||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
# See https://github.com/actions/setup-go/issues/14 | ||
- name: Setup env | ||
run: | | ||
echo "::set-env name=GOPATH::$(go env GOPATH)" | ||
echo "::add-path::$(go env GOPATH)/bin" | ||
shell: bash | ||
|
||
- name: Install dependencies | ||
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.23.1 | ||
|
||
- name: Run test suite | ||
run: make test | ||
|
||
- name: Run linter | ||
run: make lint |
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,49 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- '**' | ||
tags: | ||
- 'v*.*.*' | ||
|
||
jobs: | ||
test: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.13.x | ||
|
||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
# See https://github.com/actions/setup-go/issues/14 | ||
- name: Setup env | ||
run: | | ||
echo "::set-env name=GOPATH::$(go env GOPATH)" | ||
echo "::add-path::$(go env GOPATH)/bin" | ||
shell: bash | ||
|
||
- name: Login to GitHub Registry | ||
run: | | ||
docker login docker.pkg.github.com -u bai -p "${GITHUB_TOKEN}" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v1 | ||
with: | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
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,74 @@ | ||
run: | ||
timeout: 5m | ||
deadline: 10m | ||
|
||
linters-settings: | ||
govet: | ||
check-shadowing: false | ||
golint: | ||
min-confidence: 0 | ||
gocyclo: | ||
min-complexity: 25 | ||
maligned: | ||
suggest-new: true | ||
dupl: | ||
threshold: 100 | ||
goconst: | ||
min-len: 2 | ||
min-occurrences: 3 | ||
misspell: | ||
locale: US | ||
goimports: | ||
local-prefixes: github.com/linkedin/Burrow | ||
gocritic: | ||
enabled-tags: | ||
- diagnostic | ||
- experimental | ||
- opinionated | ||
- performance | ||
- style | ||
disabled-checks: | ||
- wrapperFunc | ||
- ifElseChain | ||
funlen: | ||
lines: 200 | ||
statements: 200 | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- bodyclose | ||
- deadcode | ||
- depguard | ||
- dogsled | ||
# - dupl | ||
# - errcheck | ||
- funlen | ||
- gocritic | ||
- gocyclo | ||
- gofmt | ||
- goimports | ||
- golint | ||
# - gosec | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- interfacer | ||
- misspell | ||
- nakedret | ||
- scopelint | ||
- staticcheck | ||
- structcheck | ||
- stylecheck | ||
- typecheck | ||
- unconvert | ||
- unused | ||
- varcheck | ||
- whitespace | ||
- goconst | ||
# - gochecknoinits | ||
|
||
issues: | ||
exclude: | ||
- consider giving a name to these results | ||
- include an explanation for nolint directive |
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,38 +1,46 @@ | ||
# .goreleaser.yml | ||
# Build customization | ||
project_name: Burrow | ||
|
||
builds: | ||
- main: main.go | ||
binary: burrow | ||
goos: | ||
- windows | ||
- darwin | ||
- linux | ||
goarch: | ||
- amd64 | ||
# Archive customization | ||
archive: | ||
format: tar.gz | ||
- main: main.go | ||
binary: burrow | ||
env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- windows | ||
- darwin | ||
- linux | ||
goarch: | ||
- amd64 | ||
archives: | ||
- format: tar.gz | ||
files: | ||
- LICENSE | ||
- NOTICE | ||
- README.md | ||
- CHANGELOG.md | ||
- config/burrow.toml | ||
- config/default-email.tmpl | ||
- config/default-http-delete.tmpl | ||
- config/default-http-post.tmpl | ||
- config/default-slack-delete.tmpl | ||
- config/default-slack-post.tmpl | ||
- LICENSE | ||
- NOTICE | ||
- README.md | ||
- CHANGELOG.md | ||
- config/burrow.toml | ||
- config/default-email.tmpl | ||
- config/default-http-delete.tmpl | ||
- config/default-http-post.tmpl | ||
- config/default-slack-delete.tmpl | ||
- config/default-slack-post.tmpl | ||
snapshot: | ||
name_template: "{{ .FullCommit }}" | ||
dockers: | ||
- | ||
goos: linux | ||
goarch: amd64 | ||
goarm: '' | ||
binaries: | ||
- burrow | ||
dockerfile: Dockerfile.gorelease | ||
image_templates: | ||
- 'toddpalino/burrow:latest' | ||
- 'toddpalino/burrow:{{ .Tag }}' | ||
extra_files: | ||
- docker-config/burrow.toml | ||
- goos: linux | ||
goarch: amd64 | ||
goarm: '' | ||
binaries: | ||
- burrow | ||
dockerfile: Dockerfile.gorelease | ||
image_templates: | ||
- 'docker.pkg.github.com/linkedin/burrow/burrow:latest' | ||
- 'docker.pkg.github.com/linkedin/burrow/burrow:{{ .Tag }}' | ||
extra_files: | ||
- docker-config/burrow.toml | ||
build_flag_templates: | ||
- "--label=org.label-schema.schema-version=1.0" | ||
- "--label=org.label-schema.version={{ .Version }}" | ||
- "--label=org.label-schema.name={{ .ProjectName }}" | ||
- "--label=org.label-schema.vcs=https://github.com/linkedin/Burrow" | ||
- "--label=org.label-schema.vcs-ref={{ .FullCommit }}" |
This file was deleted.
Oops, something went wrong.
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.