test: add vitest unit tests and Gitea Actions CI workflow

Covers secrets encryption, Nixpacks runtime-version detection, the
admin-session middleware, and the installations state machine. CI
runs the same build+test steps on every push via .gitea/workflows/ci.yml.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-10-08 03:13:04 +02:00
parent 4cf857fd2d
commit ccf6708309
8 changed files with 1191 additions and 4 deletions

17
.gitea/workflows/ci.yml Normal file
View File

@@ -0,0 +1,17 @@
name: CI
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run build --workspace apps/server
- run: npm test