Skip to content

Commit 9417ff0

Browse files
committed
Initial commit 🥳
Signed-off-by: Oliver Eikemeier <[email protected]>
0 parents  commit 9417ff0

21 files changed

+1055
-0
lines changed

‎.buildkite/pipeline.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
steps:
3+
- label: ':go: Lint'
4+
commands:
5+
- golangci-lint run --timeout 10m0s
6+
7+
- label: ':hammer: Test'
8+
commands:
9+
- gotestsum --junitfile test.xml ./...
10+
plugins:
11+
- test-collector#v1.10.0:
12+
files: test.xml
13+
format: junit
14+
15+
- label: ':codecov: + :codeclimate: Coverage'
16+
commands:
17+
- go test -race -coverprofile=cover.out ./...
18+
- sh .buildkite/upload_coverage.sh cover.out

‎.buildkite/upload_coverage.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/sh
2+
3+
COVERAGE_REPORT="$1"
4+
test -r "$COVERAGE_REPORT" || exit 1
5+
6+
echo "Upload Codecov Coverage"
7+
codecov -f "$COVERAGE_REPORT" &
8+
PID1=$!
9+
10+
echo "Upload Code Climate Coverage"
11+
cc-test-reporter format-coverage -t gocov -p fillmore-labs.com/exp/async -o .coverage/codeclimate.json "$COVERAGE_REPORT"
12+
cc-test-reporter upload-coverage -r "$CC_TEST_REPORTER_ID" -i .coverage/codeclimate.json &
13+
PID2=$!
14+
15+
wait $PID1 $PID2 || true
16+
echo "Coverage Upload Done"

‎.codeclimate.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
version: "2"
3+
checks:
4+
similar-code:
5+
enabled: false
6+
identical-code:
7+
enabled: false
8+
exclude_patterns:
9+
- "**/.*"
10+
- "**/*_test.go"
11+
- "**/*.md"
12+
- "go.mod"
13+
- "go.sum"
14+
- "LICENSE"

‎.gitattributes

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
* text=auto
2+
*.adoc text
3+
*.bat text eol=crlf
4+
*.bazel text
5+
*.bin filter=lfs diff=lfs merge=lfs -text
6+
*.bzl text
7+
*.css text eol=lf
8+
*.env text
9+
*.go text
10+
*.html text eol=lf
11+
*.jar filter=lfs diff=lfs merge=lfs -text
12+
*.java text
13+
*.js text eol=lf
14+
*.json text
15+
*.md text
16+
*.patch text
17+
*.png filter=lfs diff=lfs merge=lfs -text
18+
*.proto text linguist-detectable
19+
*.scala text
20+
*.ts text eol=lf
21+
*.yaml text
22+
*.zip filter=lfs diff=lfs merge=lfs -text
23+
go.mod text
24+
go.sum text
25+
BUILD text -linguist-detectable
26+
WORKSPACE text -linguist-detectable

‎.github/codecov.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
coverage:
3+
status:
4+
project: false
5+
patch: false
6+
ignore:
7+
- internal/mocks

‎.github/renovate.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"automerge": true,
3+
"automergeType": "branch",
4+
"extends": [
5+
"config:base",
6+
":disableDependencyDashboard"
7+
]
8+
}

‎.github/workflows/go.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Go
3+
"on":
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Set up Go
16+
uses: actions/setup-go@v4
17+
with:
18+
go-version: "1.21"
19+
check-latest: true
20+
- name: Test
21+
run: go test -race ./...

‎.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.*
2+
!/.buildkite/
3+
!/.codeclimate.yml
4+
!/.envrc
5+
!/.gitattributes
6+
!/.github/
7+
!/.gitignore
8+
!/.golangci.yaml
9+
!/.markdownlint.json
10+
!/.mockery.yaml
11+
!/.yamlfmt
12+
!/.yamllint
13+
/bin/
14+
/cover.out
15+
/test.xml

‎.golangci.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
run:
3+
modules-download-mode: readonly
4+
linters:
5+
enable-all: true
6+
disable:
7+
# deprecated
8+
- deadcode
9+
- exhaustivestruct
10+
- golint
11+
- ifshort
12+
- interfacer
13+
- maligned
14+
- nosnakecase
15+
- scopelint
16+
- structcheck
17+
- varcheck
18+
# disabled
19+
- depguard
20+
- exhaustruct
21+
- forbidigo
22+
- ireturn
23+
- nonamedreturns
24+
- varnamelen
25+
- wrapcheck
26+
- wsl
27+
linters-settings:
28+
testifylint:
29+
enable:
30+
- bool-compare
31+
- compares
32+
- empty
33+
- error-is-as
34+
- error-nil
35+
- expected-actual
36+
- float-compare
37+
# - go-require
38+
- len
39+
# - nil-compare
40+
# - require-error
41+
- suite-dont-use-pkg
42+
- suite-extra-assert-call
43+
- suite-thelper

‎.markdownlint.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"no-hard-tabs": {
3+
"ignore_code_languages": [
4+
"go"
5+
],
6+
"spaces_per_tab": 4
7+
},
8+
"line-length": {
9+
"line_length": 120
10+
}
11+
}

0 commit comments

Comments
 (0)