fix(ci): fix remaining CI failures
- alembic.ini: change fallback DB to tod_test (CI creates tod_test, not tod) - ci.yml: upgrade Go to 1.25 (matches go.mod) - ci.yml: upgrade Node to 20 (fixes ESM require() error in Vitest) - conftest.py: ruff format Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@@ -42,7 +42,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: "1.24"
|
go-version: "1.25"
|
||||||
|
|
||||||
- name: golangci-lint
|
- name: golangci-lint
|
||||||
uses: golangci/golangci-lint-action@v6
|
uses: golangci/golangci-lint-action@v6
|
||||||
@@ -57,7 +57,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "18"
|
node-version: "20"
|
||||||
cache: "npm"
|
cache: "npm"
|
||||||
cache-dependency-path: frontend/package-lock.json
|
cache-dependency-path: frontend/package-lock.json
|
||||||
|
|
||||||
@@ -183,7 +183,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: "1.24"
|
go-version: "1.25"
|
||||||
|
|
||||||
- uses: actions/cache@v4
|
- uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
@@ -203,7 +203,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "18"
|
node-version: "20"
|
||||||
cache: "npm"
|
cache: "npm"
|
||||||
cache-dependency-path: frontend/package-lock.json
|
cache-dependency-path: frontend/package-lock.json
|
||||||
|
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ version_path_separator = space # No separator in paths.
|
|||||||
# are written from script.mako
|
# are written from script.mako
|
||||||
# output_encoding = utf-8
|
# output_encoding = utf-8
|
||||||
|
|
||||||
sqlalchemy.url = postgresql+asyncpg://postgres:postgres@localhost:5432/tod
|
sqlalchemy.url = postgresql+asyncpg://postgres:postgres@localhost:5432/tod_test
|
||||||
|
|
||||||
|
|
||||||
[post_write_hooks]
|
[post_write_hooks]
|
||||||
|
|||||||
@@ -72,9 +72,7 @@ def _ensure_database_setup():
|
|||||||
# Migration 029 (VPN tenant isolation) encrypts a WireGuard server private key
|
# Migration 029 (VPN tenant isolation) encrypts a WireGuard server private key
|
||||||
# and requires CREDENTIAL_ENCRYPTION_KEY. Provide the dev default if the
|
# and requires CREDENTIAL_ENCRYPTION_KEY. Provide the dev default if the
|
||||||
# environment does not already supply it (CI always sets this explicitly).
|
# environment does not already supply it (CI always sets this explicitly).
|
||||||
env.setdefault(
|
env.setdefault("CREDENTIAL_ENCRYPTION_KEY", "LLLjnfBZTSycvL2U07HDSxUeTtLxb9cZzryQl0R9E4w=")
|
||||||
"CREDENTIAL_ENCRYPTION_KEY", "LLLjnfBZTSycvL2U07HDSxUeTtLxb9cZzryQl0R9E4w="
|
|
||||||
)
|
|
||||||
|
|
||||||
# Run Alembic migrations via subprocess (handles DB creation and schema)
|
# Run Alembic migrations via subprocess (handles DB creation and schema)
|
||||||
result = subprocess.run(
|
result = subprocess.run(
|
||||||
|
|||||||
Reference in New Issue
Block a user