mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-20 07:19:20 +01:00
ci(testing): add e2e testing for dev container
This commit is contained in:
parent
b7e524baf7
commit
2e2824a1f5
@ -1,6 +1,6 @@
|
||||
{
|
||||
"bolt": {
|
||||
"host": "database.boltdb",
|
||||
"host": "/workspaces/semaphore/database.boltdb",
|
||||
"options": {
|
||||
"sessionConnection": "true"
|
||||
}
|
||||
|
@ -7,6 +7,10 @@ python3 -m venv .venv
|
||||
./.venv/bin/pip3 install ansible
|
||||
|
||||
task build
|
||||
task e2e:goodman
|
||||
task e2e:hooks
|
||||
|
||||
cp ./.devcontainer/config.json ./.dredd/config.json
|
||||
|
||||
./bin/semaphore user add \
|
||||
--admin \
|
||||
|
12
.vscode/launch.json
vendored
12
.vscode/launch.json
vendored
@ -37,6 +37,18 @@
|
||||
"env": {
|
||||
"PATH": "${workspaceFolder}/.venv/bin:${env:PATH}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Launch E2E Tests",
|
||||
"type": "go",
|
||||
"request": "launch",
|
||||
"mode": "auto",
|
||||
"program": "./cli/main.go",
|
||||
"args": ["runner", "start", "--config", "${workspaceFolder}/.devcontainer/config-runner.json", "--log-level", "debug"],
|
||||
"cwd": "${workspaceFolder}",
|
||||
"env": {
|
||||
"PATH": "${workspaceFolder}/.venv/bin:${env:PATH}"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -160,6 +160,11 @@ tasks:
|
||||
cmds:
|
||||
- ./web/node_modules/.bin/dredd --config .dredd/dredd.testing.yml
|
||||
|
||||
e2e:test:local:
|
||||
desc: Run end to end test for API with dredd
|
||||
cmds:
|
||||
- ./web/node_modules/.bin/dredd --config .dredd/dredd.local.yml
|
||||
|
||||
release:prod:
|
||||
desc: Create and publish a release
|
||||
cmds:
|
||||
|
Loading…
Reference in New Issue
Block a user