]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
GHA/checksrc: check XML files for errors
authorViktor Szakats <commit@vsz.me>
Fri, 14 Nov 2025 14:39:40 +0000 (15:39 +0100)
committerViktor Szakats <commit@vsz.me>
Fri, 14 Nov 2025 16:32:04 +0000 (17:32 +0100)
Closes #19528

.github/workflows/checksrc.yml

index 7aa8faf6a23471798bcd60aa3a153295b7ccb1c9..94407ff6774c2f7949ed14570a058a2821482b80 100644 (file)
@@ -103,10 +103,6 @@ jobs:
     runs-on: ubuntu-latest
     timeout-minutes: 3
     steps:
-      - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
-        with:
-          persist-credentials: false
-
       - name: 'install pmccabe'
         run: |
           sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
@@ -115,9 +111,25 @@ jobs:
           sudo apt-get -o Dpkg::Use-Pty=0 install \
             pmccabe
 
+      - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
+        with:
+          persist-credentials: false
+
       - name: 'check scores'
         run: ./scripts/top-complexity
 
+  xmllint:
+    name: 'xmllint'
+    runs-on: macos-latest
+    timeout-minutes: 1
+    steps:
+      - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
+        with:
+          persist-credentials: false
+
+      - name: 'check'
+        run: git grep -z -i -l -E '^<\?xml' | xargs -0 -r xmllint >/dev/null
+
   miscchecks:
     name: 'misc checks'
     runs-on: ubuntu-latest