a3e044dec5
Improved some strings, added the basics to prepare for integrating schedules again, and added basic Forgejo CI.
40 lines
No EOL
1 KiB
JSON
40 lines
No EOL
1 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"type": "shell",
|
|
"command": "go",
|
|
"cwd": "${workspaceFolder}",
|
|
"tasks": [
|
|
{
|
|
"label": "install",
|
|
"args": ["install", "-v", "./..."],
|
|
"group": "build",
|
|
},
|
|
{
|
|
"label": "run file",
|
|
"args": ["run", "${file}"],
|
|
"group": "build",
|
|
},
|
|
{
|
|
"label": "run project",
|
|
"args": ["run", "./cmd/stbackend/main.go"],
|
|
"group": "build",
|
|
"options":{
|
|
"env":{
|
|
"DATABASE_URL": "test",
|
|
"DATABASE_DIALECT": "sqlite",
|
|
"JWT_SECRET": "JwTDeVSeCRet15243"
|
|
}
|
|
},
|
|
},
|
|
{
|
|
"label": "build project",
|
|
"args": ["build", "-x", "-v", "-o=stbackend", "-buildvcs=true", "./cmd/stbackend/main.go"],
|
|
"group": "build"
|
|
},
|
|
{
|
|
"label": "test",
|
|
"args": ["test", "-v", "./..."],
|
|
"group": "test",
|
|
},
|
|
],
|
|
} |