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