aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Resnick <max@ofmax.li>2025-05-25 22:18:03 -0700
committerMax Resnick <max@ofmax.li>2025-05-25 22:18:03 -0700
commit5054cd34c92c6c5d5ff4f8b8a6488c4ab1395f4b (patch)
tree821b37561856c48a059d23609c0b3d052f4dfa43
parent2ae5f88427767d9a48fc64e540bf35988ce69b46 (diff)
downloadgo-bumpver-5054cd34c92c6c5d5ff4f8b8a6488c4ab1395f4b.tar.gz
chore: linting, add tmp dir for tests
-rwxr-xr-x.ghglog/config.yml28
-rw-r--r--justfile4
2 files changed, 17 insertions, 15 deletions
diff --git a/.ghglog/config.yml b/.ghglog/config.yml
index 5b772c3..6d4e82f 100755
--- a/.ghglog/config.yml
+++ b/.ghglog/config.yml
@@ -5,23 +5,23 @@ info:
repository_url: https://git.ofmax.li/go-bumpver
options:
commits:
- # filters:
- # Type:
- # - feat
- # - fix
- # - perf
- # - refactor
+ # filters:
+ # Type:
+ # - feat
+ # - fix
+ # - perf
+ # - refactor
commit_groups:
- # title_maps:
- # feat: Features
- # fix: Bug Fixes
- # perf: Performance Improvements
- # refactor: Code Refactoring
+ # title_maps:
+ # feat: Features
+ # fix: Bug Fixes
+ # perf: Performance Improvements
+ # refactor: Code Refactoring
header:
pattern: "^(\\w*)\\:\\s(.*)$"
pattern_maps:
- - Type
- - Subject
+ - Type
+ - Subject
notes:
keywords:
- - BREAKING CHANGE \ No newline at end of file
+ - BREAKING CHANGE
diff --git a/justfile b/justfile
index 077e7b2..cebdd7a 100644
--- a/justfile
+++ b/justfile
@@ -7,8 +7,10 @@ install:
install bumpver $HOME/.local/bin
test:
+ mkdir -p testdata
+ yamlfmt -lint .
golangci-lint run
- go test -v -coverprofile={{ TEMPDIR }}/testcover.out ./...
+ TMPDIR=$PWD/testdata go test -v -coverprofile={{ TEMPDIR }}/testcover.out ./...
go tool cover -func={{ TEMPDIR }}/testcover.out
release part: build