Run Lizard Library Check #61
This file contains 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: Run Lizard Library Check | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main, develop] | |
pull_request: | |
branches: [main, develop] | |
jobs: | |
lizard: | |
name: RUN Code Complexity Check | |
strategy: | |
matrix: | |
module: [PUSHBUTTON , SWITCH] | |
runs-on: ubuntu-latest | |
timeout-minutes: 1 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Create out folder | |
run: mkdir out | |
- name: Run Lizard Check | |
uses: niwciu/Lizard-Runner@main | |
with: | |
path: ./src/${{matrix.module}} | |
CCN: 12 | |
Threshold: nloc=30 | |
language: cpp | |
verbose: true | |
arguments: 4 | |
- name: Generate Lizard html report | |
uses: niwciu/Lizard-Runner@main | |
with: | |
path: ./src/${{matrix.module}} | |
CCN: 12 | |
Threshold: nloc=30 | |
language: cpp | |
verbose: true | |
arguments: 4 | |
output_file: ./out/${{matrix.module}}_CCM_report.html | |
- name: Archive ${{matrix.module}} Code Complexity Metrix artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{matrix.module}}_CCM_report | |
path: ./out | |
if-no-files-found: error | |
overwrite: true | |