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
26 - golangci-lint run --path-mode=abs --config=".golangci.yml" --timeout=5m
31 desc: Run base linters and fix issues
33 - golangci-lint run --path-mode=abs --config=".golangci.yml" --timeout=5m --fix
40 LDFLAGS: '{{if .VERSION}}-ldflags="-X github.com/charmbracelet/crush/internal/version.Version={{.VERSION}}"{{end}}'
42 - "go build {{if .RACE}}-race{{end}} {{.LDFLAGS}} ."
50 - "./crush {{.CLI_ARGS}} {{if .RACE}}2>race.log{{end}}"
55 - go test -race -failfast ./... {{.CLI_ARGS}}
58 desc: Run tests and record all VCR cassettes again
61 - rm -r internal/agent/testdata
62 - go test -v -count=1 -timeout=1h ./internal/agent
70 desc: Run with profiling enabled
77 desc: Install the application
79 LDFLAGS: '{{if .VERSION}}-ldflags="-X github.com/charmbracelet/crush/internal/version.Version={{.VERSION}}"{{end}}'
82 - go install {{.LDFLAGS}} -v .
87 - go tool pprof -http :6061 'http://localhost:6060/debug/pprof/profile?seconds=10'
92 - go tool pprof -http :6061 'http://localhost:6060/debug/pprof/heap'
95 desc: Allocations profile
97 - go tool pprof -http :6061 'http://localhost:6060/debug/pprof/allocs'
100 desc: Generate JSON schema for configuration
102 - go run main.go schema > schema.json
103 - echo "Generated schema.json"
108 desc: Update Hyper embedded provider.json
110 - go generate ./internal/agent/hyper/...
112 - ./internal/agent/hyper/provider.json
115 desc: Create and push a new tag following semver
118 sh: svu next --always || go run github.com/caarlos0/svu/v3@latest next --always
119 prompt: "This will release {{.NEXT}}. Continue?"
121 - sh: '[ $(git symbolic-ref --short HEAD) = "main" ]'
122 msg: Not on main branch
123 - sh: "[ $(git status --porcelain=2 | wc -l) = 0 ]"
125 - sh: 'gh run list --workflow build.yml --commit $(git rev-parse HEAD) --status success --json conclusion -q ".[0].conclusion" | grep -q success'
126 msg: "Test build for this commit failed or not present"
127 - sh: 'gh run list --workflow snapshot.yml --commit $(git rev-parse HEAD) --status success --json conclusion -q ".[0].conclusion" | grep -q success'
128 msg: "Snapshot build for this commit failed or not present"
131 - git commit --allow-empty -m "{{.NEXT}}"
132 - git tag --annotate --sign -m "{{.NEXT}}" {{.NEXT}} {{.CLI_ARGS}}
133 - echo "Pushing {{.NEXT}}..."
134 - git push origin main --follow-tags
138 - git tag -d nightly || true
142 desc: Update Fantasy and Catwalk
144 - go get charm.land/fantasy
145 - go get github.com/charmbracelet/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