c54a9c55d2
Validate / build-test (macos-latest) (push) Failing after 4s
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 50s
Neue Word-Dokumente (alle aus Markdown via pandoc): Safety (docs/safety/): - HARA.docx — Hazard Analysis & Risk Assessment, leitet ASIL-D ab - Safety-Case.docx — Argumentation pro Safety Goal (GSN-Stil) - FMEDA.docx — Pro-Komponente Failure Modes + Diagnostic Coverage - MISRA-Compliance-Statement.docx — formaler MISRA-Nachweis - Verification-Report.docx — V-Modell rechte Seite Zusammenfassung - Tool-Qualification-Cppcheck.docx — Tool-Qual (TCL2/ASIL-D) Manuals (docs/manuals/): - User-Manual.docx — Fahrerhandbuch-Auszug - Service-Manual.docx — Werkstatt-Doku mit UDS-DTCs CI-Erweiterungen: - Doxyfile + `make docs` — API-Dokumentation aus src/ - tools/generate_test_report.py + `make test-report` — Test-Summary HTML - validate.yml: Doxygen + Test-Report als CI-Artefakte - release.yml: alle Word-Docs + Engineering-Artefakte ins Release-Bundle README: - Komplette Tour durch alle Artefakte - Repo-Struktur-Diagramm aktualisiert
137 lines
3.6 KiB
YAML
137 lines
3.6 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: 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 Cppcheck-Report
|
|
uses: actions/upload-artifact@v3
|
|
if: always()
|
|
with:
|
|
name: cppcheck-report
|
|
path: build/cppcheck-report.xml
|