Bump qltysh/qlty-action from 2.2.0 to 2.2.1 #372
Workflow file for this run
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: gen_pack | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths-ignore: | |
| - '**/*.md' | |
| push: | |
| branches: [main] | |
| release: | |
| types: [published] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5 # v2.19.3 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install Ubuntu deps | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install \ | |
| shellcheck | |
| - uses: ammaraskar/gcc-problem-matcher@cb2e3f949c41b7818628f35f8484a9b0acf90cf9 # pinned commit | |
| - name: Run ShellCheck | |
| run: | | |
| shellcheck -s bash -f gcc gen-pack lib/* | |
| cov: | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 5 | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5 # v2.19.3 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| submodules: recursive | |
| - name: Install Ubuntu deps | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install \ | |
| dos2unix \ | |
| kcov | |
| - name: Run kcov | |
| run: | | |
| ./test/run_cov.sh | |
| - name: Publish coverage report to QLTY | |
| uses: qltysh/qlty-action/coverage@fd52dc852530a708d68c3b7342f8d33d1df4cd55 # v2.2.1 | |
| with: | |
| oidc: true | |
| files: ${{github.workspace}}/test/cov/all/kcov-merged/cov.xml | |
| skip-errors: false | |
| format: cobertura | |
| verbose: true | |
| tests: | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 5 | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| os: [ macos-14, macos-15, macos-26, ubuntu-22.04, ubuntu-24.04, ubuntu-22.04-arm, ubuntu-24.04-arm, windows-2022, windows-2025 ] | |
| include: | |
| - os: macos-26 | |
| target: darwin-arm64 | |
| archiveext: tar.gz | |
| unarcmd: tar -xzf | |
| - os: macos-15 | |
| target: darwin-arm64 | |
| archiveext: tar.gz | |
| unarcmd: tar -xzf | |
| - os: macos-14 | |
| target: darwin-arm64 | |
| archiveext: tar.gz | |
| unarcmd: tar -xzf | |
| - os: ubuntu-22.04 | |
| target: linux-amd64 | |
| archiveext: tar.gz | |
| unarcmd: tar -xzf | |
| - os: ubuntu-24.04 | |
| target: linux-amd64 | |
| archiveext: tar.gz | |
| unarcmd: tar -xzf | |
| - os: ubuntu-22.04-arm | |
| target: linux-arm64 | |
| archiveext: tar.gz | |
| unarcmd: tar -xzf | |
| - os: ubuntu-24.04-arm | |
| target: linux-arm64 | |
| archiveext: tar.gz | |
| unarcmd: tar -xzf | |
| - os: windows-2022 | |
| target: windows-amd64 | |
| archiveext: zip | |
| unarcmd: 7z x | |
| - os: windows-2025 | |
| target: windows-amd64 | |
| archiveext: zip | |
| unarcmd: 7z x | |
| env: | |
| CMSIS_PACK_ROOT: ${{ github.workspace }}/.packs/ | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5 # v2.19.3 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| submodules: recursive | |
| - name: Install Ubuntu deps | |
| if: ${{ startsWith(matrix.os, 'ubuntu') }} | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install \ | |
| dos2unix \ | |
| libxml2-utils | |
| - name: Install MacOS deps | |
| if: ${{ startsWith(matrix.os, 'macos') }} | |
| run: | | |
| brew install \ | |
| bash \ | |
| coreutils \ | |
| dos2unix \ | |
| gnu-tar \ | |
| grep | |
| - name: Set up Python 3 | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: '3.x' | |
| - name: Verify Python | |
| run: | | |
| python3 --version | |
| python3 -m http.server --help | |
| - name: Install CMSIS-Toolbox | |
| shell: bash | |
| run: | | |
| curl -L https://github.com/Open-CMSIS-Pack/cmsis-toolbox/releases/download/2.12.0/cmsis-toolbox-${{ matrix.target }}.${{ matrix.archiveext }} -o cmsis-toolbox-${{ matrix.target }}.${{ matrix.archiveext }} | |
| ${{ matrix.unarcmd }} cmsis-toolbox-${{ matrix.target }}.${{ matrix.archiveext }} | |
| echo "$(pwd)/cmsis-toolbox-${{ matrix.target }}/bin" >> $GITHUB_PATH | |
| - name: Install pack ARM.CMSIS | |
| shell: bash | |
| run: | | |
| cpackget init https://www.keil.com/pack/index.pidx | |
| cpackget add -a ARM.CMSIS | |
| - name: Run unit tests | |
| shell: bash | |
| env: | |
| LANG: en_GB.UTF-8 | |
| LC_ALL: en_GB.UTF-8 | |
| TMPDIR: ${{ github.workspace }}/../../tmp | |
| run: | | |
| mkdir -p ${TMPDIR} | |
| ./test/run_all.sh | |