Skip to content

Commit d3628cb

Browse files
committed
Initial commit 🥳
0 parents  commit d3628cb

29 files changed

+1846
-0
lines changed

.buildkite/pipeline.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
env:
15+
GOEXPERIMENT: rangefunc
16+
17+
- label: ':codecov: + :codeclimate: Coverage'
18+
commands:
19+
- go test -race -coverprofile=cover.out ./...
20+
- sh .buildkite/upload_coverage.sh cover.out
21+
env:
22+
GOEXPERIMENT: rangefunc

.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/promise -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: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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"
15+
- "nocopy.go"

.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+
- nocopy.go

.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/test.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
name: Test
3+
"on":
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
checks: write
15+
contents: read
16+
pull-requests: read
17+
statuses: write
18+
steps:
19+
- name: ✔ Check out
20+
uses: actions/checkout@v4
21+
- name: 🐹 Set up Go
22+
uses: actions/setup-go@v5
23+
with:
24+
go-version: "1.22"
25+
check-latest: true
26+
- name: 🧸 golangci-lint
27+
uses: golangci/golangci-lint-action@v4
28+
with:
29+
version: v1.56.1
30+
- name: 🔨 Test
31+
run: go test -race ./...
32+
env:
33+
GOEXPERIMENT: rangefunc

.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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
16+
/trace.out

.golangci.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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-all: true
30+
disable:
31+
- require-error

.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+
}

.yamlfmt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
formatter:
3+
type: basic
4+
include_document_start: true
5+
retain_line_breaks: true
6+
scan_folded_as_literal: true
7+
max_line_length: 100
8+
pad_line_comments: 2

.yamllint

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
extends: default
3+
rules:
4+
empty-lines:
5+
max: 1
6+
line-length:
7+
max: 120

0 commit comments

Comments
 (0)