Skip to content

Commit

Permalink
Revert "Install cppcheck from repo"
Browse files Browse the repository at this point in the history
This reverts commit 806b108.
  • Loading branch information
artemgavrilov committed Aug 6, 2024
1 parent 806b108 commit c3a829e
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,27 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
path: src/percona_pg_telemetry

- name: Checkout cppcheck sources
uses: actions/checkout@v4
with:
repository: "danmar/cppcheck"
ref: "2.13.4"
path: src/cppcheck

- name: Install cppcheck
- name: Build and install cppcheck
working-directory: src/cppcheck
run: |
sudo apt-get update
sudo apt-get install -y cppcheck
mkdir build
cd build
cmake ..
cmake --build .
sudo cmake --install .
- name: Execute linter check with cppcheck
working-directory: src/percona_pg_telemetry
run: |
set -x
cppcheck --enable=all --inline-suppr --template='{file}:{line},{severity},{id},{message}' --error-exitcode=1 --suppress=missingIncludeSystem --suppress=missingInclude --suppress=unmatchedSuppression:percona_pg_telemetry.c --check-config .
Expand Down

0 comments on commit c3a829e

Please sign in to comment.