From 6f02694afab65d537c3fa7ba7da0b441fc86b070 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 14 Oct 2026 07:24:32 +0000 Subject: [PATCH] CI: make the XML well-formedness check independent of a stale apt index The lint job failed on apt-get install libxml2-utils with a 404 for the package (the runner image's package index was out of date). Use xmllint if the runner already has it, otherwise refresh the index before installing. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01Y9Lt9D4DghUfdhs7ya5Tun --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9f8bb16..1906ccb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,10 @@ jobs: coverage: none - name: XML files are well-formed run: | - sudo apt-get install -y -q libxml2-utils > /dev/null + command -v xmllint > /dev/null || { + sudo apt-get update -q > /dev/null + sudo apt-get install -y -q libxml2-utils > /dev/null + } find . -name '*.xml' -not -path './.git/*' -print0 | xargs -0 xmllint --noout - name: Language files run: php tests/lint/check-language.php bfstop.xml PLG_SYSTEM_BFSTOP