SQA TEST DISREGARD. #1088
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Validate Metadata | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - "release_*" | |
| pull_request: | |
| branches: | |
| - main | |
| - "release_*" | |
| concurrency: | |
| group: validate-metadata-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| package-field: | |
| name: Validate Matter Extension Package Field | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v5 | |
| with: | |
| submodules: false | |
| - name: Validate Matter Extension Package Field | |
| shell: bash | |
| run: | | |
| python3 -u './slc/script/verify_package_matter.py' --directory . --verbose --ci | |
| file-path-lengths: | |
| name: Validate Matter Extension File Path Lengths | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v5 | |
| with: | |
| submodules: false | |
| - name: Initialize required submodules | |
| shell: bash | |
| run: | | |
| git submodule update --init \ | |
| third_party/aws_ota_sdk \ | |
| third_party/matter_sdk \ | |
| third_party/matter_support \ | |
| third_party/mbedtls \ | |
| third_party/mqtt \ | |
| third_party/nlassert \ | |
| third_party/nlio \ | |
| third_party/QR-Code-generator | |
| - name: Stage Extension | |
| run: python3 slc/stage_extension.py ../staged | |
| - name: Validate Matter Extension File Path Lengths | |
| shell: bash | |
| working-directory: ${{ github.workspace }}/../staged/matter_extension | |
| run: | | |
| python3 -u './slc/script/file_path_length_analyzer.py' --directory . --verbose --ci | |
| matter-templates: | |
| name: Validate Matter Templates | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v5 | |
| with: | |
| submodules: false | |
| - name: Validate Matter Templates | |
| shell: bash | |
| run: | | |
| set -e | |
| python3 -u './slc/script/validate_matter_templates.py' | |
| components: | |
| name: Validate Components | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ghcr.io/siliconlabssoftware/matter_extension_dependencies:latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v5 | |
| with: | |
| submodules: false | |
| - name: Mark Repository as Safe for Git | |
| shell: bash | |
| run: | | |
| git config --global --add safe.directory /__w/matter_extension/matter_extension | |
| - name: Initialize required submodules | |
| shell: bash | |
| run: | | |
| git submodule update --init \ | |
| third_party/aws_ota_sdk \ | |
| third_party/matter_sdk \ | |
| third_party/matter_support \ | |
| third_party/mbedtls \ | |
| third_party/mqtt \ | |
| third_party/nlassert \ | |
| third_party/nlio \ | |
| third_party/QR-Code-generator | |
| - name: Trust SDK | |
| shell: bash | |
| run: | | |
| set -e | |
| echo "Trusting SDK at ${SISDK_ROOT}" | |
| slc configuration --sdk ${SISDK_ROOT} -data ${SISDK_ROOT}/out/dmp_uc.data | |
| slc signature trust --sdk ${SISDK_ROOT} | |
| - name: Validate Components | |
| shell: bash | |
| continue-on-error: true # TO-DO: Set to false once work is completed to resolve validate components errors | |
| run: | | |
| set -e | |
| python3 -u './slc/script/validate_components.py' slc/component slc | |
| sbom-validation: | |
| name: Validate SBOM Metadata | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v5 | |
| with: | |
| submodules: false | |
| - name: Install PyYAML dependency | |
| run: | | |
| python3 -m pip install --upgrade pip | |
| python3 -m pip install PyYAML | |
| - name: Run SBOM validation script | |
| shell: bash | |
| run: | | |
| set -e | |
| python3 -u './slc/script/find_missing_sbom.py' slc/component --verbose |