Skip to content

Alpha 0.0.1-alpha.21 - Getrennte G-Code-Dateien bei Umbau/Umkabeln (M… #46

Alpha 0.0.1-alpha.21 - Getrennte G-Code-Dateien bei Umbau/Umkabeln (M…

Alpha 0.0.1-alpha.21 - Getrennte G-Code-Dateien bei Umbau/Umkabeln (M… #46

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
backend-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
cache-dependency-path: backend/pyproject.toml
- name: Install backend
working-directory: backend
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Run pytest
working-directory: backend
run: pytest -v --tb=short
- name: Ruff
working-directory: backend
run: ruff check .
continue-on-error: true
frontend-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Bewusst KEIN `cache: npm` — wir committen (noch) keine package-lock.json.
# Mit cache + ohne Lockfile failed der setup-Step hart — das war der
# urspruengliche CI-Fehler. Sobald wir eine package-lock.json haben,
# kann der Cache wieder rein.
- uses: actions/setup-node@v4
with:
node-version: "20"
- id: install
name: Install frontend (non-blocking)
working-directory: frontend
run: npm install --no-audit --no-fund --no-package-lock
continue-on-error: true
- id: tsc
name: TypeScript check (non-blocking)
if: steps.install.outcome == 'success'
working-directory: frontend
run: npx --no-install tsc --noEmit
continue-on-error: true
- id: build
name: Vite build (non-blocking)
if: steps.install.outcome == 'success'
working-directory: frontend
run: npx --no-install vite build
continue-on-error: true
- name: Status summary
if: always()
run: |
echo "::group::Frontend-Build-Status (alle Steps sind non-blocking)"
echo "Install: ${{ steps.install.outcome }}"
echo "TypeScript: ${{ steps.tsc.outcome }}"
echo "Vite build: ${{ steps.build.outcome }}"
echo "::endgroup::"
echo ""
echo "Hinweis: Solange das Frontend in Bootstrap-Phase ist, schlaegt"
echo "der Job NICHT fehl (Mails werden vermieden). Status oben zeigt"
echo "was wirklich grün/rot ist. Erst wenn Frontend produktionsreif,"
echo "wird das auf strict umgestellt."