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