werkstaetten-app/.forgejo/workflows/ci.yml
Friederich Loheide a3c7dd3fef
All checks were successful
Prüfen / pruefen (pull_request) Successful in 2m34s
CI: Version aus package.json
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-09 19:06:25 +00:00

52 lines
1.3 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Prüft Pull Requests und main: Typen, Unit-Tests, Build, Ende-zu-Ende-Tests mit Barrierefreiheit.
name: Prüfen
# Pull Requests und main – nicht zusätzlich jeden Push auf PR-Branches (spart Speicher auf dem Runner)
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
pruefen:
runs-on: docker
container:
image: mcr.microsoft.com/playwright:v1.63.0-noble
env:
CI: 'true'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
cache: npm
- name: Build-Werkzeuge (better-sqlite3 wird für Node 24 kompiliert)
run: apt-get update -qq && apt-get install -y -qq --no-install-recommends build-essential python3 >/dev/null
- name: Abhängigkeiten
run: npm ci
- name: Typen prüfen
run: npm run check
- name: Unit-Tests
run: npm run test:unit
- name: Bauen
run: npm run build
- name: Ende-zu-Ende-Tests (inkl. axe, WCAG 2.2 AA)
run: npm run test:e2e
- name: Bericht bei Fehlern
if: failure()
uses: actions/upload-artifact@v3
with:
name: playwright-bericht
path: |
playwright-report/
test-results/
retention-days: 14