- store build metadata (version, commit, date) - multi-binary build: `make build` builds all packages from ./cmd - devcontainer adds ./bin to the PATH by default
45 lines
1.1 KiB
JSON
45 lines
1.1 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "build",
|
|
"type": "shell",
|
|
"command": "make build",
|
|
"group": { "kind": "build", "isDefault": true },
|
|
"presentation": { "reveal": "always", "panel": "shared" },
|
|
"problemMatcher": "$go"
|
|
},
|
|
{
|
|
"label": "test",
|
|
"type": "shell",
|
|
"command": "make test",
|
|
"group": { "kind": "test", "isDefault": true },
|
|
"presentation": { "reveal": "always", "panel": "shared" },
|
|
"problemMatcher": "$go"
|
|
},
|
|
{
|
|
"label": "test (race detector)",
|
|
"type": "shell",
|
|
"command": "make test-race",
|
|
"group": "test",
|
|
"presentation": { "reveal": "always", "panel": "shared" },
|
|
"problemMatcher": "$go"
|
|
},
|
|
{
|
|
"label": "lint",
|
|
"type": "shell",
|
|
"command": "make lint",
|
|
"group": "none",
|
|
"presentation": { "reveal": "always", "panel": "shared" },
|
|
"problemMatcher": "$go"
|
|
},
|
|
{
|
|
"label": "security scan",
|
|
"type": "shell",
|
|
"command": "make security",
|
|
"group": "none",
|
|
"presentation": { "reveal": "always", "panel": "shared" }
|
|
}
|
|
]
|
|
}
|