mirror of
https://github.com/bitechdev/ResolveSpec.git
synced 2025-11-13 18:03:53 +00:00
86 lines
1.4 KiB
JSON
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
|
|
}
|
|
}
|
|
]
|
|
} |