Merge branch 'chore/create-new-src-folder' into 'main'
Chore/create new src folder See merge request hectorjsmith/fail2ban-prometheus-exporter!9
This commit is contained in:
commit
50c969014f
7 changed files with 9 additions and 10 deletions
|
@ -2,12 +2,11 @@
|
||||||
# Make sure to check the documentation at http://goreleaser.com
|
# Make sure to check the documentation at http://goreleaser.com
|
||||||
before:
|
before:
|
||||||
hooks:
|
hooks:
|
||||||
# You may remove this if you don't use go modules.
|
- make install-deps
|
||||||
- go mod download
|
|
||||||
# you may remove this if you don't need go generate
|
|
||||||
- go generate ./...
|
|
||||||
builds:
|
builds:
|
||||||
- goos:
|
-
|
||||||
|
dir: src
|
||||||
|
goos:
|
||||||
- linux
|
- linux
|
||||||
- windows
|
- windows
|
||||||
- darwin
|
- darwin
|
||||||
|
|
10
Makefile
10
Makefile
|
@ -1,18 +1,18 @@
|
||||||
install-deps:
|
install-deps:
|
||||||
go mod download
|
cd src/ && go mod download
|
||||||
|
|
||||||
# Standard go test
|
# Standard go test
|
||||||
test:
|
test:
|
||||||
go test ./... -v -race
|
cd src/ && go test ./... -v -race
|
||||||
|
|
||||||
# Make sure no unnecessary dependencies are present
|
# Make sure no unnecessary dependencies are present
|
||||||
go-mod-tidy:
|
go-mod-tidy:
|
||||||
go mod tidy -v
|
cd src/ && go mod tidy -v
|
||||||
git diff-index --quiet HEAD
|
git diff-index --quiet HEAD
|
||||||
|
|
||||||
format:
|
format:
|
||||||
go fmt $(go list ./... | grep -v /vendor/)
|
cd src/ && go fmt $(go list ./... | grep -v /vendor/)
|
||||||
go vet $(go list ./... | grep -v /vendor/)
|
cd src/ && go vet $(go list ./... | grep -v /vendor/)
|
||||||
|
|
||||||
generateChangelog:
|
generateChangelog:
|
||||||
./tools/git-chglog_linux_amd64 --config tools/chglog/config.yml 0.0.0.. > CHANGELOG.md
|
./tools/git-chglog_linux_amd64 --config tools/chglog/config.yml 0.0.0.. > CHANGELOG.md
|
||||||
|
|
Loading…
Reference in a new issue