Some checks failed
Prüfen / pruefen (pull_request) Failing after 2m33s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
54 lines
1.4 KiB
YAML
54 lines
1.4 KiB
YAML
# 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
|