diff --git a/.github/workflows/ci-tests-and-coverage.yml b/.github/workflows/ci-tests-and-coverage.yml index b9fd456b..1b82566d 100644 --- a/.github/workflows/ci-tests-and-coverage.yml +++ b/.github/workflows/ci-tests-and-coverage.yml @@ -49,9 +49,29 @@ jobs: - name: Run Maven Verify run: mvn -U -B -ntp verify + - name: Verify Adventure dependency alignment + shell: bash + run: | + mkdir -p target/ci + mvn -B -ntp dependency:tree \ + '-Dincludes=net.kyori:adventure-*' \ + | tee target/ci/adventure-dependency-tree.txt + if grep -E 'net\.kyori:(adventure-api|adventure-key|adventure-nbt|adventure-resource-pack|adventure-serializer-configurate4|adventure-text-logger-slf4j|adventure-text-minimessage|adventure-text-serializer-(ansi|commons|gson|gson-legacy-impl|json|json-legacy-impl|legacy|plain)):[^:]+:4\.' target/ci/adventure-dependency-tree.txt; then + echo "Adventure 4.x core modules remain in the resolved dependency graph." >&2 + exit 1 + fi + + - name: Upload CI Diagnostics + if: always() + uses: actions/upload-artifact@v7 + with: + name: ci-diagnostics + if-no-files-found: warn + path: target/ci + - name: Upload JaCoCo Report if: always() uses: actions/upload-artifact@v7 with: name: jacoco-report - path: target/site/jacoco + path: target/site/jacoco \ No newline at end of file