1
0
Files
mstr-tasks/development/compile.yaml
2026-01-26 15:36:52 +01:00

49 lines
976 B
YAML

# yaml-language-server: $schema=https://git.jesof.ch/public/mstr-schemas/raw/branch/main/mstr-tasks-schema.json
tasks:
- execute:
description: "Format"
exec: "go"
dir: "."
args:
- "fmt"
- "./..."
- execute:
description: "Check Source"
exec: "go"
dir: "."
args:
- "vet"
- "./..."
- execute:
description: "GolangCi Lint"
exec: "golangci-lint"
dir: "."
args:
- "run"
- "./..."
- execute:
description: "Clean Testcache"
exec: "go"
dir: "."
args:
- "clean"
- "-testcache"
when: $(test == true && release != "")
- execute:
description: "Test"
exec: "go"
dir: "."
args:
- "test"
- '$(verbose ? "-v" : "-v=false")'
- "-cover"
- "-race"
- "-tags"
- '$(integration ? "integration" : "")'
- "./..."
when: $(test == true)