7 GOEXPERIMENT: greenteagc
11 desc: Install golangci-lint
13 - go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest
18 desc: Run base linters
20 - golangci-lint run --path-mode=abs --config=".golangci.yml" --timeout=5m
25 desc: Run base linters and fix issues
27 - golangci-lint run --path-mode=abs --config=".golangci.yml" --timeout=5m --fix
46 - go test ./... {{.CLI_ARGS}}
54 desc: Run with profiling enabled
61 desc: Install the application
68 - go tool pprof -http :6061 'http://localhost:6060/debug/pprof/profile?seconds=10'
73 - go tool pprof -http :6061 'http://localhost:6060/debug/pprof/heap'
76 desc: Allocations profile
78 - go tool pprof -http :6061 'http://localhost:6060/debug/pprof/allocs'
81 desc: Generate JSON schema for configuration
83 - go run main.go schema > schema.json
84 - echo "Generated schema.json"
89 desc: Create and push a new tag following semver
92 sh: go run github.com/caarlos0/svu/v3@latest next --always
93 prompt: "This will release {{.NEXT}}. Please make sure you've fetch tags. Continue?"
95 - sh: '[ $(git symbolic-ref --short HEAD) = "main" ]'
96 msg: Not on main branch
97 - sh: "[ $(git status --porcelain=2 | wc -l) = 0 ]"
100 - git commit --allow-empty -m "{{.NEXT}}"
102 - git tag --annotate --sign {{.NEXT}} {{.CLI_ARGS}}
103 - echo "Pushing {{.NEXT}}..."
104 - git push origin --tags
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list