qt-xml.yml 667 B

123456789101112131415161718192021222324252627282930
  1. name: UI XML Validator
  2. on:
  3. push:
  4. paths-ignore:
  5. - "cmake/**"
  6. pull_request:
  7. paths:
  8. - "UI/forms/**"
  9. jobs:
  10. qt-xml-validator:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: Checkout
  14. uses: actions/checkout@v3
  15. with:
  16. submodules: 'recursive'
  17. - name: Install xmllint
  18. run: |
  19. sudo apt-get -qq update
  20. sudo apt-get install --no-install-recommends -y libxml2-utils
  21. - name: Register Annotations
  22. uses: korelstar/xmllint-problem-matcher@v1
  23. - name: Validate
  24. run: |
  25. xmllint --schema UI/forms/XML-Schema-Qt5.15.xsd --noout UI/forms/*.ui UI/forms/**/*.ui