294b9956f9
Validate / build-test (macos-latest) (push) Failing after 2s
Validate / build-test (windows-latest) (push) Failing after 15s
Validate / build-test (ubuntu-latest) (push) Failing after 15s
Validate / reports (push) Has been skipped
Release / release (push) Successful in 57s
3 neue Plaene: - Project Manual: Master-Wegweiser fuer neue Projektmitglieder, Lese-Reihenfolge, Rollen, Lebenszyklus, Dokumenten-Landschaft - Configuration Management Plan: CIs, Baselines, Change Control, Release-Prozess, Aufbewahrungsfristen (ASPICE SUP.8) - Risk Management Plan: Projekt-Risiken (abgegrenzt von HARA), Klassifikations-Skala, Risiko-Register, Eskalations-Pfad Landing-Page (Startseite): - tools/generate_landing_page.py erzeugt build/index.html - Standalone-HTML, oeffnet im Browser ohne Server - KPI-Cards: SG/SYS/SWE/Arch/Komponenten/Tests-Counts - Sektionen mit Links: Plaene, Safety, Manuals, Audit, Reports, Diagramme, Source-Code, externe Links - Existenz-Check: nicht-generierte Reports werden grau markiert - Im Release-Bundle als index.html ganz oben CI-Integration: - validate.yml: neuer Step "Landing-Page" + Upload als Artefakt - release.yml: Landing-Page generieren + ins Bundle einbauen, zusaetzlich Source-Code im Bundle (war vorher nur als tar.gz) Makefile: neues Target `make landing-page`
147 lines
3.8 KiB
YAML
147 lines
3.8 KiB
YAML
name: Validate
|
|
|
|
on:
|
|
push:
|
|
branches: [main, develop]
|
|
pull_request:
|
|
branches: [main, develop]
|
|
|
|
jobs:
|
|
# Build + Tests auf allen 3 OS — Linux verbindlich, Mac/Win continue-on-error
|
|
build-test:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
continue-on-error: ${{ matrix.os != 'ubuntu-latest' }}
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install dependencies (Linux)
|
|
if: matrix.os == 'ubuntu-latest'
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y --no-install-recommends \
|
|
build-essential gcc make cppcheck lcov \
|
|
python3 python3-pip ca-certificates
|
|
|
|
- name: Verify toolchain
|
|
shell: bash
|
|
run: |
|
|
which gcc && gcc --version | head -1
|
|
which make && make --version | head -1
|
|
which cppcheck && cppcheck --version | head -1
|
|
|
|
- name: Static Analysis (Cppcheck)
|
|
shell: bash
|
|
run: make static
|
|
|
|
- name: MISRA Check
|
|
shell: bash
|
|
run: |
|
|
make misra || echo "MISRA findings present (Demo non-failing)"
|
|
|
|
- name: Build + Unit Tests
|
|
shell: bash
|
|
run: make test
|
|
|
|
# Coverage, Traceability, Diagrams, API-Doc, Test-Report — alle auf Linux
|
|
reports:
|
|
runs-on: ubuntu-latest
|
|
needs: build-test
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y --no-install-recommends \
|
|
build-essential gcc make cppcheck lcov \
|
|
python3 python3-pip ca-certificates \
|
|
doxygen graphviz
|
|
|
|
- name: Build + Tests + Coverage
|
|
run: |
|
|
make test
|
|
make coverage
|
|
|
|
- name: Test-Summary-Report
|
|
run: make test-report
|
|
|
|
- name: Traceability Check
|
|
run: python3 tools/traceability.py check
|
|
|
|
- name: Traceability Matrix publishen
|
|
run: python3 tools/traceability.py publish docs/traceability
|
|
|
|
- name: PlantUML Diagramme rendern
|
|
run: python3 tools/render_plantuml.py
|
|
|
|
- name: Doxygen API-Dokumentation
|
|
run: make docs
|
|
|
|
- name: Landing-Page
|
|
run: make landing-page
|
|
|
|
- name: Cppcheck-Report (XML)
|
|
run: |
|
|
mkdir -p build
|
|
cppcheck --enable=all --inconclusive --xml --xml-version=2 \
|
|
-I src src 2> build/cppcheck-report.xml || true
|
|
|
|
- name: Upload Coverage HTML
|
|
uses: actions/upload-artifact@v3
|
|
if: always()
|
|
with:
|
|
name: coverage-html
|
|
path: build/coverage-html/
|
|
|
|
- name: Upload Test-Report
|
|
uses: actions/upload-artifact@v3
|
|
if: always()
|
|
with:
|
|
name: test-report
|
|
path: |
|
|
build/test-report.html
|
|
build/test-report.md
|
|
build/test-output.txt
|
|
|
|
- name: Upload Traceability Matrix
|
|
uses: actions/upload-artifact@v3
|
|
if: always()
|
|
with:
|
|
name: traceability
|
|
path: docs/traceability/
|
|
|
|
- name: Upload Architektur-Diagramme
|
|
uses: actions/upload-artifact@v3
|
|
if: always()
|
|
with:
|
|
name: architecture-diagrams
|
|
path: docs/diagrams/
|
|
|
|
- name: Upload Doxygen API-Doc
|
|
uses: actions/upload-artifact@v3
|
|
if: always()
|
|
with:
|
|
name: api-doc
|
|
path: build/api-doc/html/
|
|
|
|
- name: Upload Landing-Page
|
|
uses: actions/upload-artifact@v3
|
|
if: always()
|
|
with:
|
|
name: landing-page
|
|
path: build/index.html
|
|
|
|
- name: Upload Cppcheck-Report
|
|
uses: actions/upload-artifact@v3
|
|
if: always()
|
|
with:
|
|
name: cppcheck-report
|
|
path: build/cppcheck-report.xml
|