Skip to content

Commit

Permalink
CI: make cppcheck_master fail on push if cppcheck fails (but not on PR)
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jan 3, 2025
1 parent 37b86e7 commit 75c85b4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/code_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,14 @@ jobs:
cd build
cmake ..
- name: Run cppcheck test
- name: Run cppcheck test (on push events)
if: ${{ github.event_name == 'push' }}
run: |
cd build
../scripts/cppcheck.sh
- name: Run cppcheck test, but ignore failures (on pull request)
if: ${{ github.event_name == 'pull_request' }}
run: |
cd build
# Do not fail the job. This is just used as a tool to monitor how we are regarding recent cppcheck
Expand Down

0 comments on commit 75c85b4

Please sign in to comment.