packdesc.yml 860 B

12345678910111213141516171819202122232425262728293031
  1. name: Pack Description
  2. on:
  3. pull_request:
  4. branches: [ develop ]
  5. paths:
  6. - 'ARM.CMSIS.pdsc'
  7. permissions:
  8. contents: read
  9. pull-requests: write
  10. jobs:
  11. check:
  12. name: Check pack description schema
  13. runs-on: ubuntu-latest
  14. steps:
  15. - name: Install xmllint
  16. run: |
  17. sudo apt-get update
  18. sudo apt-get install libxml2-utils
  19. - name: Checkout repository
  20. uses: actions/checkout@v2
  21. with:
  22. ref: ${{ github.event.pull_request.head.sha }}
  23. - name: Run xmllint
  24. run: |
  25. curl https://raw.githubusercontent.com/Open-CMSIS-Pack/Open-CMSIS-Pack-Spec/main/schema/PACK.xsd -o CMSIS/Utilities/PACK.xsd
  26. echo "::add-matcher::.github/xmllint.json"
  27. xmllint --noout --schema "$(realpath -m ./CMSIS/Utilities/PACK.xsd)" "ARM.CMSIS.pdsc"
  28. echo "::remove-matcher owner=xmllint::"