49 lines
976 B
YAML
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)
|