add ci #1

Merged
keligrubb merged 15 commits from add-ci into main 2026-02-12 19:50:45 +00:00
2 changed files with 9 additions and 7 deletions
Showing only changes of commit fc6a34c266 - Show all commits

View File

@@ -11,8 +11,6 @@ steps:
- name: test
image: node:24-slim
depends_on: []
environment:
CI: "true"
commands:
- npm run test
when:
@@ -23,9 +21,9 @@ steps:
depends_on: []
commands:
- npm ci
- ./scripts/gen-dev-cert.sh
- npm run test:e2e
environment:
CI: "true"
NODE_TLS_REJECT_UNAUTHORIZED: "0"
when:
- event: pull_request
@@ -38,6 +36,8 @@ steps:
registry: git.keligrubb.com
tags: latest
dry-run: true
single-snapshot: true
cleanup: true
when:
- event: pull_request
@@ -50,6 +50,8 @@ steps:
username: ${CI_REPO_OWNER}
password:
from_secret: gitea_registry_token
single-snapshot: true
cleanup: true
when:
- event: push
branch: main

View File

@@ -52,10 +52,10 @@ export default defineConfig({
],
webServer: {
command: 'npm run dev',
url: 'https://localhost:3000/health',
reuseExistingServer: true, // Always reuse existing server for E2E tests
timeout: 120 * 1000, // 2 minutes for server startup
url: 'https://localhost:3000/health/ready',
reuseExistingServer: !process.env.CI, // Don't reuse in CI (always start fresh)
timeout: 180_000, // 3 minutes (180 seconds) for server startup (CI can be slower)
ignoreHTTPSErrors: true,
},
timeout: 60 * 1000, // 60 seconds per test (WebRTC setup takes time)
timeout: 60_000, // 60 seconds per test (WebRTC setup takes time)
})