From e3400a49fcee61efe138eeaa0ee917d0b9e865fc Mon Sep 17 00:00:00 2001 From: 2pk03 Date: Wed, 21 Oct 2026 11:11:20 +0200 Subject: [PATCH] Fix documentation parent and validate it in CI --- .github/workflows/backend.yml | 14 +++++++++++++- wayang-docs/pom.xml | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 11281e281..c83e79dfe 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -58,6 +58,18 @@ jobs: with: path: ~/.m2/repository key: ${{ runner.os }}-maven + - name: Validate documentation POM + run: | + python - <<'PY' + import xml.etree.ElementTree as ET + + ns = {'m': 'http://maven.apache.org/POM/4.0.0'} + root_version = ET.parse('pom.xml').findtext('m:version', namespaces=ns) + docs_parent = ET.parse('wayang-docs/pom.xml').findtext('m:parent/m:version', namespaces=ns) + if docs_parent != root_version: + raise SystemExit(f'Documentation parent {docs_parent} does not match root {root_version}') + PY + ./mvnw validate -B -Pweb-documentation -pl wayang-docs - name: Install Python dependencies run: | python -m pip install --upgrade pip @@ -67,4 +79,4 @@ jobs: - name: Run Maven Unit tests run: ./mvnw clean verify -B -Dmaven.test.skip=false -Dwayang.configuration=file:$(pwd)/tools/test/config/wayang.properties - name: Run Python Unit tests - run: pytest -ra --config tools/test/config/wayang.properties python/src/pywy/tests/ \ No newline at end of file + run: pytest -ra --config tools/test/config/wayang.properties python/src/pywy/tests/ diff --git a/wayang-docs/pom.xml b/wayang-docs/pom.xml index 7399c10d2..8cba7a4c2 100644 --- a/wayang-docs/pom.xml +++ b/wayang-docs/pom.xml @@ -24,7 +24,7 @@ wayang org.apache.wayang - 1.1.1-SNAPSHOT + 1.1.2-SNAPSHOT wayang-docs