aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/code_checks.yml
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2020-12-13 15:30:47 +0100
committerKristian Evers <kristianevers@gmail.com>2020-12-13 15:30:47 +0100
commitc3efbd23a5bf26f1dfd5bc55ae3488d5665ace98 (patch)
treea204df79f7057d7d420bf7c5358791347617b9cd /.github/workflows/code_checks.yml
parent126445148d3b742c7f4e31f5f65857be59c48340 (diff)
parent6857d1a4a8eb6fcb7b88b0339413913ba2c3351a (diff)
downloadPROJ-c3efbd23a5bf26f1dfd5bc55ae3488d5665ace98.tar.gz
PROJ-c3efbd23a5bf26f1dfd5bc55ae3488d5665ace98.zip
Merge remote-tracking branch 'osgeo/master'
Diffstat (limited to '.github/workflows/code_checks.yml')
-rw-r--r--.github/workflows/code_checks.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/.github/workflows/code_checks.yml b/.github/workflows/code_checks.yml
new file mode 100644
index 00000000..dc2cc6e4
--- /dev/null
+++ b/.github/workflows/code_checks.yml
@@ -0,0 +1,20 @@
+name: Code Checks
+
+on: [push, pull_request]
+
+jobs:
+
+ cppcheck_2004:
+ runs-on: ubuntu-20.04
+ if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+
+ - name: Install Requirements
+ run: |
+ sudo apt update
+ sudo apt install -y --no-install-recommends cppcheck
+
+ - name: Run cppcheck test
+ run: ./scripts/cppcheck.sh