Skip to content

Commit

Permalink
CI improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
mmontes11 committed Mar 16, 2023
1 parent e451dea commit dbdb5f9
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
linters-settings:
dupl:
threshold: 100
gocyclo:
min-complexity: 15
lll:
line-length: 140
misspell:
locale: US

linters:
disable-all: true
enable:
- deadcode
- dupl
- errcheck
- gocyclo
- gofmt
- goimports
- gosimple
- govet
- ineffassign
- lll
- misspell
- nestif
- staticcheck
- typecheck
- unused
- varcheck
# not compatible with go 1.18 yet
# - bodyclose
# - noctx
# - structcheck

run:
timeout: 5m
go: "1.18"
13 changes: 13 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
project_name: gotway
builds:
- main: ./cmd/bankroach
binary: gotway
goos:
- linux
goarch:
- arm64
- amd64
env:
- CGO_ENABLED=0
archives:
- name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"

0 comments on commit dbdb5f9

Please sign in to comment.