Skip to content

Commit dbdb5f9

Browse files
committed
CI improvements
1 parent e451dea commit dbdb5f9

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

.golangci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
linters-settings:
2+
dupl:
3+
threshold: 100
4+
gocyclo:
5+
min-complexity: 15
6+
lll:
7+
line-length: 140
8+
misspell:
9+
locale: US
10+
11+
linters:
12+
disable-all: true
13+
enable:
14+
- deadcode
15+
- dupl
16+
- errcheck
17+
- gocyclo
18+
- gofmt
19+
- goimports
20+
- gosimple
21+
- govet
22+
- ineffassign
23+
- lll
24+
- misspell
25+
- nestif
26+
- staticcheck
27+
- typecheck
28+
- unused
29+
- varcheck
30+
# not compatible with go 1.18 yet
31+
# - bodyclose
32+
# - noctx
33+
# - structcheck
34+
35+
run:
36+
timeout: 5m
37+
go: "1.18"

.goreleaser.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
project_name: gotway
2+
builds:
3+
- main: ./cmd/bankroach
4+
binary: gotway
5+
goos:
6+
- linux
7+
goarch:
8+
- arm64
9+
- amd64
10+
env:
11+
- CGO_ENABLED=0
12+
archives:
13+
- name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"

0 commit comments

Comments
 (0)