- .gitea/workflows/ci.yml: gitea-Actions-Workflow - Job 1 (test): npm ci + build + test auf Node 22 - Job 2 (webapp): webapp-Build + Artifact-Verifikation - Trigger: push + pull_request auf main - README.md komplett neu strukturiert: - Architektur-Diagramm (ASCII) mit allen 5 Bausteinen - 5-Bausteine-Tabelle mit Spalte 'Wo' (Tool/Vault/QMD) - Installations-Anleitung (Tool, Vault, QMD, Webapp) - Beispiel-Session end-to-end - Erweiterte CLI-Referenz mit allen Optionen - Test-Anleitung
52 lines
965 B
YAML
52 lines
965 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '22'
|
|
cache: 'npm'
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Build
|
|
run: npm run build
|
|
|
|
- name: Tests
|
|
run: npm test
|
|
|
|
webapp:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '22'
|
|
cache: 'npm'
|
|
|
|
- name: Install webapp dependencies
|
|
run: |
|
|
cd webapp
|
|
npm ci
|
|
npm run build
|
|
|
|
- name: Verify artifacts
|
|
run: |
|
|
test -f webapp/dist/index.html
|
|
test -f webapp/dist/manifest.webmanifest
|
|
echo "Webapp build artifacts present"
|