-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmise.toml
More file actions
93 lines (78 loc) · 2.74 KB
/
mise.toml
File metadata and controls
93 lines (78 loc) · 2.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
[tools]
golang = "1.26.1"
golangci-lint = "2.11.2"
hugo-extended = "0.152.2"
lefthook = "2.0.13"
[tasks.ci]
description = "Format code and run all CI checks"
depends = ["format", "lint", "test"]
[tasks.build]
description = "Build lazykiq"
run = "mkdir -p bin && go build -o bin/lazykiq ./cmd/lazykiq"
[tasks.build-release]
description = "Build a smaller release binary"
run = "mkdir -p bin && CGO_ENABLED=0 go build -trimpath -tags=nodbus -ldflags='-s -w' -o bin/lazykiq ./cmd/lazykiq"
[tasks.lint]
description = "Run golangci-lint"
run = "golangci-lint run"
[tasks.format]
description = "Format with golangci-lint"
run = "golangci-lint fmt"
alias = "fmt"
[tasks.test]
description = "Run tests"
run = "go test ./..."
[tasks.coverage]
description = "Run tests with coverage"
run = "go test -coverprofile=coverage.out ./... && go tool cover -html=coverage.out"
alias = "cov"
[tasks.deps]
description = "Update development dependencies"
depends = ["deps-go", "deps-ruby"]
[tasks.deps-go]
description = "Update Go dependencies"
run = "go get -u ./... && go mod tidy"
[tasks.deps-ruby]
description = "Update Ruby dependencies"
run = "find . -maxdepth 1 -name 'Gemfile*' ! -name '*.lock' -exec mise exec ruby -- bundle update --gemfile '{}' --all \\;"
dir = "demo"
[tasks.website-dev]
description = "Run Hugo in development mode"
run = "bun dev --baseURL http://localhost:1313/lazykiq"
dir = "website"
[tasks.demo]
description = "Run the latest demo application (Sidekiq 8.1)"
run = """
echo "Sidekiq 8.1 demo uses Redis DB 0"
echo "Sidekiq Web UI: http://localhost:9292"
echo "Connect with: go run ./cmd/lazykiq --redis redis://localhost:6379/0"
docker-compose -f docker-compose.yml up --build -d --remove-orphans redis sidekiq-8.1
"""
dir = "demo"
[tasks.demo-sidekiq81]
description = "Run the Sidekiq 8.1 demo application"
run = """
echo "Sidekiq 8.1 demo uses Redis DB 0"
echo "Sidekiq Web UI: http://localhost:9292"
echo "Connect with: go run ./cmd/lazykiq --redis redis://localhost:6379/0"
docker-compose -f docker-compose.yml up --build -d --remove-orphans redis sidekiq-8.1
"""
dir = "demo"
[tasks.demo-sidekiq80]
description = "Run the Sidekiq 8.0 demo application"
run = """
echo "Sidekiq 8.0 demo uses Redis DB 1"
echo "Sidekiq Web UI: http://localhost:9293"
echo "Connect with: go run ./cmd/lazykiq --redis redis://localhost:6379/1"
docker-compose -f docker-compose.yml up --build -d --remove-orphans redis sidekiq-8.0
"""
dir = "demo"
[tasks.demo-sidekiq73]
description = "Run the Sidekiq 7.3 demo application"
run = """
echo "Sidekiq 7.3 demo uses Redis DB 2"
echo "Sidekiq Web UI: http://localhost:9294"
echo "Connect with: go run ./cmd/lazykiq --redis redis://localhost:6379/2"
docker-compose -f docker-compose.yml up --build -d --remove-orphans redis sidekiq-7.3
"""
dir = "demo"