-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmise.toml
More file actions
37 lines (29 loc) · 1020 Bytes
/
mise.toml
File metadata and controls
37 lines (29 loc) · 1020 Bytes
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
[tools]
go = "latest"
golangci-lint = "latest"
"pipx:pre-commit" = "latest"
[tasks.lint]
run = "golangci-lint run ./..."
description = "Run golangci-lint"
[tasks.test]
run = "go test -race ./..."
description = "Run all tests with race detector"
[tasks.build]
run = "go build ./..."
description = "Build all packages"
[tasks.serve]
run = "go run . serve --config srne.toml"
description = "Start the service against local inverters"
[tasks."serve:mock"]
run = "go run . serve --config srne-mock.toml"
description = "Start the service against mock inverters on port 8090"
[tasks.check]
depends = ["build", "test", "lint"]
description = "Run build, test, and lint"
[tasks."addon:build"]
run = "docker build --build-arg BUILD_FROM=ghcr.io/home-assistant/amd64-base:latest -t srne-addon -f ha-addon/Dockerfile ."
description = "Build the HA add-on Docker image (amd64)"
[tasks."addon:run"]
run = "docker run --rm --network host srne-addon"
depends = ["addon:build"]
description = "Build and run the HA add-on locally"