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

View File

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