ci(testing): add e2e testing for dev container

This commit is contained in:
Denis Gukov 2024-10-21 06:50:14 +00:00
parent b7e524baf7
commit 2e2824a1f5
4 changed files with 22 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"bolt": {
"host": "database.boltdb",
"host": "/workspaces/semaphore/database.boltdb",
"options": {
"sessionConnection": "true"
}

View File

@ -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
View File

@ -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}"
}
}
]
}

View File

@ -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: