ResolveSpec/.vscode/tasks.json
2025-11-11 15:34:24 +02:00

86 lines
1.4 KiB
JSON

{
"version": "2.0.0",
"tasks": [
{
"type": "go",
"label": "go: build workspace",
"command": "build",
"options": {
"env": {
"CGO_ENABLED": "0"
},
"cwd": "${workspaceFolder}/bin",
},
"args": [
"../..."
],
"problemMatcher": [
"$go"
],
"group": "build",
},
{
"type": "go",
"label": "go: test workspace",
"command": "test",
"options": {
"cwd": "${workspaceFolder}"
},
"args": [
"-v",
"-race",
"-coverprofile=coverage.out",
"-covermode=atomic",
"./..."
],
"problemMatcher": [
"$go"
],
"group": {
"kind": "test",
"isDefault": true
},
"presentation": {
"reveal": "always",
"panel": "new"
}
},
{
"type": "shell",
"label": "go: vet workspace",
"command": "go vet ./...",
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": [
"$go"
],
"group": "test"
},
{
"type": "shell",
"label": "go: lint workspace",
"command": "golangci-lint run --timeout=5m",
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": [],
"group": "test"
},
{
"type": "shell",
"label": "go: full test suite",
"dependsOrder": "sequence",
"dependsOn": [
"go: vet workspace",
"go: test workspace"
],
"problemMatcher": [],
"group": {
"kind": "test",
"isDefault": false
}
}
]
}