# Prüft jeden Push und jeden Pull Request: Typen, Unit-Tests, Build, Ende-zu-Ende-Tests mit Barrierefreiheit. name: Prüfen on: push: branches: ['**'] pull_request: 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: 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