werkstaetten-app/.forgejo/workflows/ci.yml
Friederich Loheide 391c91d4b0
Some checks failed
Prüfen / pruefen (pull_request) Failing after 2m33s
CI und Docker: Build-Werkzeuge für better-sqlite3, CI nur für PRs und main
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-09 19:03:24 +00:00

54 lines
1.4 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
env:
APP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || format('{0}-{1}', 'dev', github.sha) }}
- 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