-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbro.yaml
More file actions
55 lines (47 loc) · 1.61 KB
/
Copy pathbro.yaml
File metadata and controls
55 lines (47 loc) · 1.61 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
version: "1"
# Bro dogfoods itself: this repository's own pipeline is declared here,
# and CI executes it with `bro run ...` — so every push exercises Bro's
# fingerprinting, caching, DAG scheduling, and embedded shell on its own
# codebase.
#
# Bootstrap the first binary, then use it:
# go build -o bin/bro ./cmd/bro
# bin/bro run check
tasks:
build:
cmd: 'go build -ldflags "-X github.com/HYPERVAPOR/bro/internal/cli.version=dev" -o bin/bro ./cmd/bro'
inputs: ["cmd/**/*.go", "internal/**/*.go", "go.mod", "go.sum"]
input_cmds: ["go version"]
outputs: ["bin/bro"]
vet:
cmd: "go vet ./..."
inputs: ["cmd/**/*.go", "internal/**/*.go", "e2e/**/*.go", "go.mod", "go.sum"]
input_cmds: ["go version"]
test:
cmd: "go test ./..."
inputs: ["cmd/**/*.go", "internal/**/*.go", "e2e/**/*.go", "go.mod", "go.sum"]
input_cmds: ["go version"]
lint:
cmd: "golangci-lint run"
inputs: ["cmd/**/*.go", "internal/**/*.go", "e2e/**/*.go", "go.mod", "go.sum"]
input_cmds: ["go version"]
bench:
cmd: 'go test -bench=. -benchtime=1x -run="^$" ./internal/exec/ ./internal/fingerprint/'
inputs: ["internal/exec/**/*.go", "internal/fingerprint/**/*.go", "go.mod", "go.sum"]
input_cmds: ["go version"]
docs:
cmd: "npm run docs:build"
inputs:
- "docs/*.md"
- "docs/*.png"
- "docs/.vitepress/config.mts"
- "install.sh"
- "install.ps1"
- "package.json"
- "package-lock.json"
- "scripts/*.mjs"
input_cmds: ["node --version"]
outputs: ["docs/.vitepress/dist/"]
check:
deps: ["vet", "test", "lint"]
cmd: "echo ok"