pull/458/head
Artem Gavrilov 2024-04-24 18:57:19 +02:00
parent 2e2ead2fa5
commit 025cf6a36d
1 changed files with 13 additions and 12 deletions

View File

@ -25,22 +25,23 @@ jobs:
ref: '2.13.4' ref: '2.13.4'
path: src/cppcheck path: src/cppcheck
- name: Build and install cppcheck # - name: Build and install cppcheck
working-directory: src/cppcheck # working-directory: src/cppcheck
run: | # run: |
mkdir build # mkdir build
cd build # cd build
cmake .. # cmake ..
cmake --build . # cmake --build .
sudo cmake --install . # sudo cmake --install .
- name: Execute linter check with cppcheck # - name: Execute linter check with cppcheck
run: | # run: |
set -x # 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 . # 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: Check license headers - name: Check license headers
uses: apache/skywalking-eyes/header@v0.6.0 uses: apache/skywalking-eyes/header@v0.6.0
working-directory: src/pg_stat_monitor
- name: Run debug commands on failure - name: Run debug commands on failure
if: ${{ failure() }} if: ${{ failure() }}