Compare commits
2 Commits
f6bcb1fbe5
...
00734ee233
| Author | SHA1 | Date | |
|---|---|---|---|
| 00734ee233 | |||
| b50e9160ba |
@@ -1,11 +1,11 @@
|
||||
---
|
||||
# nuzlocke-tracker-wtbk
|
||||
title: Fix CI workflow failures for backend and e2e tests
|
||||
status: in-progress
|
||||
status: completed
|
||||
type: bug
|
||||
priority: normal
|
||||
created_at: 2026-02-21T15:26:22Z
|
||||
updated_at: 2026-02-21T15:27:40Z
|
||||
updated_at: 2026-02-21T15:29:08Z
|
||||
---
|
||||
|
||||
Two failures in CI:
|
||||
|
||||
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -45,6 +45,8 @@ jobs:
|
||||
- name: Install uv and Python
|
||||
run: |
|
||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
source "$HOME/.local/bin/env"
|
||||
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
|
||||
uv python install 3.14
|
||||
- name: Install dependencies
|
||||
run: uv pip install --system --python 3.14 -e ".[dev]"
|
||||
@@ -89,6 +91,8 @@ jobs:
|
||||
- name: Run e2e tests
|
||||
run: npm run test:e2e
|
||||
working-directory: frontend
|
||||
env:
|
||||
E2E_API_URL: http://192.168.1.10:8100
|
||||
- name: Upload Playwright report
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
|
||||
@@ -4,7 +4,8 @@ import { dirname, resolve } from 'node:path'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
|
||||
const __dirname = dirname(fileURLToPath(import.meta.url))
|
||||
const API_BASE = 'http://localhost:8100/api/v1'
|
||||
const API_HOST = process.env.E2E_API_URL || 'http://localhost:8100'
|
||||
const API_BASE = `${API_HOST}/api/v1`
|
||||
const COMPOSE_FILE = resolve(__dirname, '../../docker-compose.test.yml')
|
||||
const COMPOSE = `docker compose -p nuzlocke-test -f ${COMPOSE_FILE}`
|
||||
const FIXTURES_PATH = resolve(__dirname, '.fixtures.json')
|
||||
@@ -48,7 +49,7 @@ export default async function globalSetup() {
|
||||
|
||||
// 2. Wait for API to be healthy
|
||||
console.log('[setup] Waiting for API to be ready...')
|
||||
await waitForApi('http://localhost:8100/')
|
||||
await waitForApi(`${API_HOST}/`)
|
||||
|
||||
// 3. Run migrations
|
||||
run(`${COMPOSE} exec -T test-api alembic -c /app/alembic.ini upgrade head`)
|
||||
|
||||
@@ -15,7 +15,7 @@ export default defineConfig({
|
||||
server: {
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:8000',
|
||||
target: process.env.E2E_API_URL || 'http://localhost:8000',
|
||||
changeOrigin: true,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user