diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 21ce567e9..6b15d63e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,12 +40,6 @@ jobs: lcov --rc lcov_branch_coverage=1 --remove test/unit-test/build/coverage.info '*third-party*' --output-file test/unit-test/build/coverage.info lcov --rc lcov_branch_coverage=1 --remove test/unit-test/build/coverage.info '*mocks*' --output-file test/unit-test/build/coverage.info lcov --list test/unit-test/build/coverage.info - #- name: lcov-cop - # uses: ChicagoFlutter/lcov-cop@v1.0.2 - # with: - # path: "build/coverage.info" - # min_coverage: 99 - # exclude: "**/*test*" formatting: runs-on: ubuntu-latest @@ -65,3 +59,14 @@ jobs: else exit 0 fi + + complexity: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Setup + run: sudo apt-get install complexity + - name: Complexity + run: | + find . -iname '*.c' |\ + xargs complexity --scores --threshold=0 --horrid-threshold=55