CI und Docker: Build-Werkzeuge für better-sqlite3, CI nur für PRs und main
Some checks failed
Prüfen / pruefen (pull_request) Failing after 2m33s
Some checks failed
Prüfen / pruefen (pull_request) Failing after 2m33s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
07fa837807
commit
391c91d4b0
2 changed files with 9 additions and 2 deletions
|
|
@ -1,10 +1,12 @@
|
|||
# Prüft jeden Push und jeden Pull Request: Typen, Unit-Tests, Build, Ende-zu-Ende-Tests mit Barrierefreiheit.
|
||||
# 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: ['**']
|
||||
branches: [main]
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
pruefen:
|
||||
|
|
@ -21,6 +23,9 @@ jobs:
|
|||
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
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
# ── Build ────────────────────────────────────────────────────────────────────
|
||||
FROM node:24-slim AS build
|
||||
WORKDIR /app
|
||||
# better-sqlite3 wird für Node 24 aus dem Quellcode gebaut
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends python3 make g++ && rm -rf /var/lib/apt/lists/*
|
||||
COPY package.json package-lock.json .npmrc ./
|
||||
RUN npm ci
|
||||
COPY . .
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue