add e2e stage

This commit is contained in:
Ildar Kamalov
2025-01-31 16:44:20 +03:00
parent 86ac5e5567
commit bac9991a95
2 changed files with 15 additions and 2 deletions

View File

@@ -28,7 +28,12 @@
final: false final: false
jobs: jobs:
- 'Artifact' - 'Artifact'
- 'Test e2e'
- 'E2E':
manual: false
final: false
jobs:
- 'Test e2e'
'Test frontend': 'Test frontend':
'docker': 'docker':
@@ -167,6 +172,9 @@
- 'adg-docker': 'true' - 'adg-docker': 'true'
'Test e2e': 'Test e2e':
'artifact-dependencies':
- 'name': 'AdGuardHome_linux_amd64'
'required': true
'docker': 'docker':
'image': '${bamboo.dockerFrontend}' 'image': '${bamboo.dockerFrontend}'
'volumes': 'volumes':
@@ -187,6 +195,11 @@
export CI=true export CI=true
mkdir -p /tmp/adguard
tar -xzf dist/AdGuardHome_linux_amd64.tar.gz -C /tmp/adguard
chmod +x /tmp/adguard/AdGuardHome
make VERBOSE=1 js-deps js-test-e2e make VERBOSE=1 js-deps js-test-e2e
'requirements': 'requirements':
- 'adg-docker': 'true' - 'adg-docker': 'true'

View File

@@ -70,7 +70,7 @@ export default defineConfig({
webServer: { webServer: {
command: process.env.CI command: process.env.CI
? 'rm -f AdGuardHome.yaml && ./AdGuardHome --local-frontend -v' ? '/tmp/adguard/AdGuardHome --local-frontend -v'
: 'rm -f AdGuardHome.yaml && sudo ./AdGuardHome --local-frontend -v', : 'rm -f AdGuardHome.yaml && sudo ./AdGuardHome --local-frontend -v',
url: 'http://127.0.0.1:3000', url: 'http://127.0.0.1:3000',
cwd: '..', cwd: '..',