From d1dee75c1c16f2dc10af4518e261dab8a48a94d1 Mon Sep 17 00:00:00 2001 From: Artem Gavrilov Date: Thu, 25 Apr 2024 18:53:11 +0200 Subject: [PATCH] Revert "Disable cppcheck job" This reverts commit 10f55373eae44d1ad5467938ecd4839ac5909a13. --- .github/workflows/check.yml | 54 ++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index e181df4..09a4881 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -3,37 +3,37 @@ on: pull_request: jobs: - # cppcheck: - # name: Cppcheck - # runs-on: ubuntu-22.04 + cppcheck: + name: Cppcheck + runs-on: ubuntu-22.04 - # steps: - # - name: Checkout sources - # uses: actions/checkout@v4 - # with: - # path: src/pg_stat_monitor + steps: + - name: Checkout sources + uses: actions/checkout@v4 + with: + path: src/pg_stat_monitor - # - name: Checkout cppcheck sources - # uses: actions/checkout@v4 - # with: - # repository: "danmar/cppcheck" - # ref: "2.13.4" - # path: src/cppcheck + - name: Checkout cppcheck sources + uses: actions/checkout@v4 + with: + repository: "danmar/cppcheck" + ref: "2.13.4" + path: src/cppcheck - # - name: Build and install cppcheck - # working-directory: src/cppcheck - # run: | - # mkdir build - # cd build - # cmake .. - # cmake --build . - # sudo cmake --install . + - name: Build and install cppcheck + working-directory: src/cppcheck + run: | + mkdir build + cd build + cmake .. + cmake --build . + sudo cmake --install . - # - name: Execute linter check with cppcheck - # working-directory: src/pg_stat_monitor - # run: | - # set -x - # cppcheck --enable=all --inline-suppr --template='{file}:{line},{severity},{id},{message}' --error-exitcode=1 --suppress=missingIncludeSystem --suppress=missingInclude --suppress=unmatchedSuppression:pg_stat_monitor.c --check-config . + - name: Execute linter check with cppcheck + working-directory: src/pg_stat_monitor + run: | + set -x + cppcheck --enable=all --inline-suppr --template='{file}:{line},{severity},{id},{message}' --error-exitcode=1 --suppress=missingIncludeSystem --suppress=missingInclude --suppress=unmatchedSuppression:pg_stat_monitor.c --check-config . licens: name: License