first commit
This commit is contained in:
48
development/compile.yaml
Normal file
48
development/compile.yaml
Normal file
@@ -0,0 +1,48 @@
|
||||
# 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)
|
||||
Reference in New Issue
Block a user