7 sh: git describe --long 2>/dev/null || echo ""
9 sh: test -f race.log && echo "1" || echo ""
13 GOEXPERIMENT: greenteagc
17 desc: Install golangci-lint
19 - go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest
24 desc: Run base linters
27 - golangci-lint run --path-mode=abs --config=".golangci.yml" --timeout=5m
32 desc: Check that log messages start with capital letters
34 - ./scripts/check_log_capitalization.sh
37 desc: Run base linters and fix issues
39 - golangci-lint run --path-mode=abs --config=".golangci.yml" --timeout=5m --fix
46 LDFLAGS: '{{if .VERSION}}-ldflags="-X github.com/charmbracelet/crush/internal/version.Version={{.VERSION}}"{{end}}'
48 - "go build {{if .RACE}}-race{{end}} {{.LDFLAGS}} ."
56 - "./crush {{.CLI_ARGS}} {{if .RACE}}2>race.log{{end}}"
61 - go test -race -failfast ./... {{.CLI_ARGS}}
64 desc: Run tests and record all VCR cassettes again
67 - rm -r internal/agent/testdata
68 - go test -v -count=1 -timeout=1h ./internal/agent
76 desc: Run prettier on HTML/CSS/JS files
78 - prettier --write internal/cmd/stats/index.html internal/cmd/stats/index.css internal/cmd/stats/index.js
81 desc: Run with profiling enabled
88 desc: Install the application
90 LDFLAGS: '{{if .VERSION}}-ldflags="-X github.com/charmbracelet/crush/internal/version.Version={{.VERSION}}"{{end}}'
93 - go install {{.LDFLAGS}} -v .
98 - go tool pprof -http :6061 'http://localhost:6060/debug/pprof/profile?seconds=10'
103 - go tool pprof -http :6061 'http://localhost:6060/debug/pprof/heap'
106 desc: Allocations profile
108 - go tool pprof -http :6061 'http://localhost:6060/debug/pprof/allocs'
111 desc: Generate JSON schema for configuration
113 - go run main.go schema > schema.json
114 - echo "Generated schema.json"
119 desc: Update Hyper embedded provider.json
121 - go generate ./internal/agent/hyper/...
123 - ./internal/agent/hyper/provider.json
126 desc: Create and push a new tag following semver
129 sh: svu next --always || go run github.com/caarlos0/svu/v3@latest next --always
130 prompt: "This will release {{.NEXT}}. Continue?"
132 - sh: '[ $(git symbolic-ref --short HEAD) = "main" ]'
133 msg: Not on main branch
134 - sh: "[ $(git status --porcelain=2 | wc -l) = 0 ]"
136 - sh: 'gh run list --workflow build.yml --commit $(git rev-parse HEAD) --status success --json conclusion -q ".[0].conclusion" | grep -q success'
137 msg: "Test build for this commit failed or not present"
138 - sh: 'gh run list --workflow snapshot.yml --commit $(git rev-parse HEAD) --status success --json conclusion -q ".[0].conclusion" | grep -q success'
139 msg: "Snapshot build for this commit failed or not present"
142 - git commit --allow-empty -m "{{.NEXT}}"
143 - git tag --annotate --sign -m "{{.NEXT}}" {{.NEXT}} {{.CLI_ARGS}}
144 - echo "Pushing {{.NEXT}}..."
145 - git push origin main --follow-tags
149 - git tag -d nightly || true
153 desc: Update Fantasy and Catwalk
155 - go get charm.land/fantasy
156 - go get charm.land/catwalk
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