File tree Expand file tree Collapse file tree 5 files changed +67
-3
lines changed
Expand file tree Collapse file tree 5 files changed +67
-3
lines changed Original file line number Diff line number Diff line change 1414 working_directory : /go/src/github.com/RedisBloom/redisbloom-go
1515 steps :
1616 - checkout
17- - run : go get -v -t -d ./...
18-
19- # run tests with coverage
17+ - run : make checkfmt
2018 - run : make get
2119 - run : make coverage
2220 - run : bash <(curl -s https://codecov.io/bash) -t ${CODECOV_TOKEN}
Original file line number Diff line number Diff line change 1+ name-template : ' Version $NEXT_PATCH_VERSION - Summary Here🌈'
2+ tag-template : ' v$NEXT_PATCH_VERSION'
3+ categories :
4+ - title : ' 🚀Features'
5+ labels :
6+ - ' feature'
7+ - ' enhancement'
8+ - title : ' Bug Fixes'
9+ labels :
10+ - ' fix'
11+ - ' bugfix'
12+ - ' bug'
13+ - title : ' 🧰Maintenance'
14+ label : ' chore'
15+ change-template : ' - $TITLE @$AUTHOR (#$NUMBER)'
16+ exclude-labels :
17+ - ' skip-changelog'
18+ template : |
19+ ## Changes
20+
21+ $CHANGES
Original file line number Diff line number Diff line change 1+ name : Release Drafter
2+
3+ on :
4+ push :
5+ # branches to consider in the event; optional, defaults to all
6+ branches :
7+ - master
8+
9+ jobs :
10+ update_release_draft :
11+ runs-on : ubuntu-latest
12+ steps :
13+ # Drafts your next Release notes as Pull Requests are merged into "master"
14+ - uses : release-drafter/release-drafter@v5
15+ with :
16+ # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
17+ config-name : release-drafter-config.yml
18+ env :
19+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ # options for analysis running
2+ run :
3+ # include test files or not, default is true
4+ tests : false
5+
6+ linters-settings :
7+ golint :
8+ # minimal confidence for issues, default is 0.8
9+ min-confidence : 0.8
10+
11+ exclude-rules :
12+ # Exclude some linters from running on tests files.
13+ - path : _test\.go
14+ linters :
15+ - errcheck
Original file line number Diff line number Diff line change @@ -6,14 +6,25 @@ GOCLEAN=$(GOCMD) clean
66GOTEST =$(GOCMD ) test
77GOGET =$(GOCMD ) get
88GOMOD =$(GOCMD ) mod
9+ GOFMT =$(GOCMD ) fmt
910
1011.PHONY : all test coverage
1112all : test coverage
1213
14+ checkfmt :
15+ @echo ' Checking gofmt' ; \
16+ bash -c "diff -u <(echo -n) <(gofmt -d .)";\
17+ EXIT_CODE=$$?;\
18+ if [ "$$EXIT_CODE" -ne 0 ]; then \
19+ echo '$@: Go files must be formatted with gofmt'; \
20+ fi && \
21+ exit $$EXIT_CODE
22+
1323get :
1424 $(GOGET ) -t -v ./...
1525
1626test : get
27+ $(GOFMT ) ./...
1728 $(GOTEST ) -race -covermode=atomic ./...
1829
1930coverage : get test
You can’t perform that action at this time.
0 commit comments