ci(frontend): Build-Job als Gate im Security-Workflow ergänzen
npm ci + npm run build (tsc -b + vite build) laufen jetzt bei jedem Push/PR und blockieren bei TS-/Build-Fehlern statt unbemerkt zu brechen. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015Ahyx6D3r7G1EuAc42nezn
This commit is contained in:
@@ -54,3 +54,26 @@ jobs:
|
|||||||
cd frontend
|
cd frontend
|
||||||
npm audit --audit-level=high || true
|
npm audit --audit-level=high || true
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
|
frontend-build:
|
||||||
|
name: Frontend Build (tsc + vite)
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: '20'
|
||||||
|
cache: 'npm'
|
||||||
|
cache-dependency-path: frontend/package-lock.json
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
cd frontend
|
||||||
|
npm ci
|
||||||
|
|
||||||
|
- name: Build (blockiert bei TS-/Build-Fehlern)
|
||||||
|
run: |
|
||||||
|
cd frontend
|
||||||
|
npm run build
|
||||||
|
|||||||
Reference in New Issue
Block a user